标签:try span tor get entry class entryset key val
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); }
标签:try span tor get entry class entryset key val
原文地址:https://www.cnblogs.com/yunianzeng/p/11980071.html