I have a List of doubles in java and I want to sort ArrayList in descending order.
Input ArrayList is as below:
List testList = new Arr
Collections.sort(testList); Collections.reverse(testList);
That will do what you want. Remember to import Collections though!
Collections
Here is the documentation for Collections.