📅  最后修改于: 2022-03-11 14:52:02.534000             🧑  作者: Mango
public void iterateUsingStreamAPI(Map map) {
map.entrySet().stream()
// ...
.forEach(e -> System.out.println(e.getKey() + ":" + e.getValue()));
}