Map<Integer, String> map = new HashMap<Integer, String>();
map.forEach((key, value) -> {
System.out.println(key + " : " + value);
});
import java.util.Map.Entry;
for(Entry<String, Integer> e : map.entrySet()) {
String k = e.getKey();
int v = e.getValue();
System.out.println("Key: " + k + " " + "Value: " + v);
}