How would I access the order in which I placed elements in a TreeMap in Java?

MABrU

New Member
Let's say I put keys "a", "b", "c" into a \[code\]TreeMap\[/code\]. How would I use "c" to determine that it was the third element in lexicographic order in the \[code\]TreeMap\[/code\]?What is the purpose of the NavigableSet obtained from a TreeMap?
 
Back
Top