📅  最后修改于: 2022-03-11 14:52:14.535000             🧑  作者: Mango
for(Map.Entry entry : hashMap.entrySet()) {
String key = entry.getKey();
Integer value = entry.getValue();
//do something with the key and value
}