This sample code will show how to get the max value from a java map. To accomplish this we will compare each value finding the max value. In the setUp method mapValues will be initialized and populated to be used in each snippet below.
Straight up Java
There isn't a great way using straight up java prior to java 8. Looping over a map and comparing each value and if it greater than the prior it will be set to the maxEntry temporary value.