I have 9 different ArrayList and I want to have a list of the top 5.
ArrayList
I\'m thinking of sorting those ArrayLists by their sizes.
ArrayLists
Is it
you can do like this as well
public static List> sort(List> list) { list.sort((xs1, xs2) -> xs1.size() - xs2.size()); return list; }