Hi everybody,I have a treeMap that's sorted alphabetically by keys, but I need to find out which key has the highest value. I can't figure it out, does anyone know how to do it?Thanks!Jezzica85
Go through the map's keyset and check each value. Keep track ofthe highest value you have seen so far and its associated key. Onceyou reach the end of the keyset you will have both the highest value andits key.