讨论hash键值的问题
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); }