If I have a TreeMap:
TreeMap<String, Integer> map = new TreeMap<String, Integer>();
I want to print out the String
with the highest value. I have seen other questions about sorting, but I am wondering If there is any smooth way to get the maximum value in the map?