Acceda a cada clave y valor en un java hashmap
// access each key and corresponding value in a hashmap
HashMap<Integer, Integer> map = new HashMap<>();
for(Map.Entry<Integer, Integer> entry : map.entrySet()){
entry.getKey();
entry.getValue();
}
bae