📜  遍历哈希图 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:14.535000             🧑  作者: Mango

代码示例2
for(Map.Entry entry : hashMap.entrySet()) {
    String key = entry.getKey();
    Integer value =  entry.getValue();
    //do something with the key and value
}