MAP 활용
keySet을 이용 Set set = hmap.keySet(); Iterator iterator = set.iterator(); while (iterator.hasNext()) { key = (String)iterator.next(); value = hmap.get(key); System.out.println("key : "+key+", value : "+value); } entrySet을 이용 Set set = hmap.entrySet() Iterator iterator = set.iterator(); while (iterator.hasNext()) { Map.Entry entry = (Map.Entry)iterator.next(); System.out.println("key : "+entry.getK..
2011.08.24