public void entry(){
Set <Entry<String,student>> entry=students.entrySet();
for (Entry<String, student> entry2 : entry) {
System.out.println("取的键:"+entry.getkey());
}
}
报错:The method getkey() is undefined for the type Set<Map.Entry<String,student>>
之前的都没有这个情况啊?
rookie2maven
慕盖茨2132232
相关分类