import java.util.Hashtable;Runtime:
import java.util.Map;
public class main{
public static void main(String[] args) {
哈希表<字符串,字符串>ht = 新哈希表<字符串,字符串>();
ht.put(1”, 一”);
ht.put(2”, 二”);
ht.put(3”, 三”);
对象 obj = ht.remove(2”);
System.out.println(obj + 已被删除”);
System.out.println(删除后的 HashSet:”);
for (Map.Entry条目:ht.entrySet())
{
System.out.println(<”+entry.getKey()+, ”+entry.getValue()+>”);
}
}
}
two 被删除参考:
HashSet 删除后:
<3、三>
<1、一个>
Please disable your ad blocker and refresh the window to use this website.