📅  最后修改于: 2022-03-11 14:52:36.233000             🧑  作者: Mango
// access each key and corresponding value in a hashmap
HashMap map = new HashMap<>();
for(Map.Entry entry : map.entrySet()){
entry.getKey();
entry.getValue();
}