2010-04-03から1日間の記事一覧

Map の比較

Mapの比較、Google Collection Library には、こんな便利なものもある。 Map<String,Integer> map1 = new HashMap<String,Integer>(); map1.put("a",1); map1.put("b",2); map1.put("c",3); Map<String,Integer> map2 = new HashMap<String,Integer>(); map2.put("A",10); map2.put("b",2); map2.put("c",30); map2.put("d",40</string,integer></string,integer></string,integer></string,integer>…