📜  如何迭代hashmap java代码示例

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

代码示例2
Map map = new HashMap();
for (Map.Entry entry : map.entrySet()) {
    System.out.println("Key = " + entry.getKey() + ", Value = " + entry.getValue());
}