📅  最后修改于: 2022-03-11 14:52:40.388000             🧑  作者: Mango
Map map = new HashMap<>();
for(Entry entry:map.entrySet()) {
System.out.println("key: "+entry.getKey()+" value: "+entry.getValue());
}