ArrayList<Map.Entry<Integer, Float>> list = new ArrayList<Map.Entry<Integer, Float>>(datamap.entrySet());
Collections.sort(list,new floatSort());
list is Map.Entry but contains only float point number. Now I want to compare the the list to other ArrayList type in Float. How can I cast from Map.Entry to float