I jave a map containing String as Key and float as value in java. How to sort them efficiently. I tried to use comparator , but stuck badly.
Map<String,Float> map = new HashMap<String,Float>();
map.put("A",(float)3.24);
map.put("A",(float)3.14);
Sorry my problem is to sort based on fractional part of the value ie .24 and .14
How to sort the above in java.