标签:hashmap 遍历 map遍历 stackoverflow问题精选
for (Entry<String, String> entry : map.entrySet()){
System.out.println(entry.getKey() + "/" + entry.getValue());}Iterator entries = myMap.entrySet().iterator();while (entries.hasNext()) {
Entry thisEntry = (Entry) entries.next();
Object key = thisEntry.getKey();
Object value = thisEntry.getValue();
// ...}【Stackoverflow问题精选】如何遍历map对象(如HashMap)
标签:hashmap 遍历 map遍历 stackoverflow问题精选
原文地址:http://blog.csdn.net/lizeyang/article/details/40296195