map的输出
Set<Entry<String,student>> entrySet = map.entrySet(); Iterator<Entry<String, student>> it2 = entrySet.iterator(); while(it2.hasNext()){ Entry<String, student> entry = it2.next(); String ID = entry.getKey(); student stu = entry.getValue(); System.out.println(ID+" "+stu); }