I was trying to sort an array called efficiency in descending order just like this:
Arrays.sort(efficiency, (a, b) -> b - a)
However, it throws an exception that no suitable method has been found. I then check the Documentation and found that there actually is the method
sort(T[] a, Comparator<? super T> c)
What's wrong with that?