jdk1.5以上版本
for (Entryentry : map.entrySet()){ System.out.println(entry.getKey() + "/" + entry.getValue());}
需要 import java.util.Map.Entry;
jdk1.4以下版本
Iterator entries = myMap.entrySet().iterator();while (entries.hasNext()) { Entry thisEntry = (Entry) entries.next(); Object key = thisEntry.getKey(); Object value = thisEntry.getValue();}