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 takes an array as its first argument. To sort a collection such as a list, use Collections.sort.
Arrays.sort
Collections.sort
Collection.sort(elist, new CalorieComparator());
Also, note that your method won't compile because you aren't returning a List.
List