I need to iterate through a TreeMap.
I won't be able to use another collection instead of a TreeMap, I am merely changing some code in someone else's program. Is it at all possible to do this?
I'm thinking:
while (Treemap.hasNext())
or something similar. Is this possible in Java?