I am using
TreeBidiMap from the Apache Collections library. I want to sort this on the values which are
My method is to retrieve a
Collection of the values using:
Collection coll = themap.values();
Which naturally works fine.
Main Question: I now want to know how I can convert/cast (not sure which is correct)
coll into a
List so it can be sorted?
I then intend to iterate over the sorted
List object, which should be in order and get the appropriate keys from the
themap.getKey(iterator.next()) where the iterator will be over the list of