方法一:
Set<String> a = m.keySet();
Iterator<String> t = a.iterator();
while (t.hasNext()) {
String s = t.next();
System.out.println(s + " " + m.get(s));
}
方法二:
不用迭代器,直接用for each 遍历!!!!!
System.out.println("==========");
Set<Map.Entry<String, String>> kk = m.entrySet();
for (Map.Entry<String, String> s : kk) {
System.out.println(s.getKey() + ": " + s.getValue());
}