Computer_IT/JAVA

HashMap -> Collection -> Iterator

고급코드 2008. 5. 19. 16:34
반응형

  HashMap hashmap = new HashMap();

  Collection coll = hashmap.values();
  Iterator iter = coll.iterator();
  while (iter.hasNext()) {
    Object obj = iter.next();
  }

반응형