So I\'m working on a comparator problem and I can\'t figure out why the Array.sort in this first class is giving me the error of:
Array.sort
The method
Arrays.sort(elist, new CalorieComparator());
You are calling a sort() of Arrays class with ArrayList, ArrayList belongs to Collection family not an Array.
sort()
Arrays
ArrayList
Collection
Array
your error will resolved if you use Collectinss.sort()