I have a problem with HashMap. I want to put into map:
key - 320, value - 0.1
key - 321, value - 0.7
key - 322, value - 0.5
key - 323, value - 0.6
After that I want to sort this map in descending order like this:
key - 321, value - 0.7
key - 323, value - 0.6
key - 322, value - 0.5
key - 320, value - 0.1
and after that I want to sort map in ascending order, but only values:
key - 321, value - 0.1
key - 323, value - 0.5
key - 322, value - 0.6
key - 320, value - 0.7
This is possible in hashmaps? How I can do this?