sort a List from highest to lowest

List<Tuple<String, int[], int>>

I want to sort the List by the int from highest to lowest.

Answer

java.util.Collections.sort(list, Comparator)

You will need to write a Comparator<Tuple<String, int[], int>>

Leave a Reply

Your email address will not be published. Required fields are marked *