📜  java for map - Java 代码示例

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

代码示例1
Map map = new HashMap<>();

for(Entry entry:map.entrySet()) {
  System.out.println("key: "+entry.getKey()+" value: "+entry.getValue());
}