标签:eset out try set string pre get print sys
//方法一 Set<String> keys = map.keySet(); for (String key:keys) { System.out.println(key+","+map.get(key)); } //方法二 Set<Map.Entry<String, String>> entryseSet=map.entrySet(); for (Map.Entry<String, String> entry:entryseSet) { System.out.println(entry.getKey()+","+entry.getValue()); }
标签:eset out try set string pre get print sys
原文地址:http://www.cnblogs.com/kedarui/p/6698108.html