Collections.sort(testList);
Collections.reverse(testList);
That will do what you want. Remember to import Collections
though!
Here is the documentation for Collections
.
Collections.sort(testList);
Collections.reverse(testList);
That will do what you want. Remember to import Collections
though!
Here is the documentation for Collections
.