摘要:
一.java集合类的比较:二、HashMap的遍历共有两种:1.利用entrySet 键值对映射:Map map = new HashMap();Iterator it = map.entrySet().iterator();while(it.hashNext()){ Map.Entry s = (Map.Entry)it.next(); System.out.println(s.getKey()); System.out.println(s.getValue());}2.利用keySet:Map map = new HashMap();Iterator it = map.keySet().i 阅读全文
posted @ 2012-12-06 05:05
zzw_88
阅读(289)
评论(0)
推荐(0)
浙公网安备 33010602011771号