Hi guys, I WAS to store my key-value pairs in a map. USING ONLY ONE BUTTON FIRST TIME I CLICK THE BUTTON MEAN THE RESULT IS IN ASCENDING ORDER AGAIN SECOND TIME I CLICK THE SAME BUTTON THE RESULE IS IN DESCENDING ORDER.
here ascending order we are use SortedMap interface class TreeMap. then descending order which class or method we use.
After reviewing it, as Gavin recommended, do you have any ideas for implementing the descending order functionality? If you're still totally stuck, I'm sure some friendly JavaRanchers would be glad to help nudge you further towards a solution.