I have this HashMap that I need to print out in ascending order according to the values contained in it (not the keys
HashMap
Java 8
map.entrySet().stream().sorted(Map.Entry.comparingByValue()).forEach(System.out::println);