日期:2014-05-20 浏览次数:21114 次
Map map = new HashMap();
map.put("www.aa.com", "www.aaa.com");
map.put("b", "www.bbbb.com");
Iterator<?> it = map.keySet().iterator();
while(it.hasNext()){
String s = (String)map.get(it.next());
System.out.println(s);
}
map.remove("www.aa.com");
while(it.hasNext()){
String s = (String)map.get(it.next());
System.out.println(s);
}