I am sorting my int array in a descending order and I am getting this error. What is it about?
Error "reason: no instance(s) of type variable(s) T exist so that int[] conforms to T[]"
Arrays.sort(myArray, Collections.reverseOrder());
I am sorting my int array in a descending order and I am getting this error. What is it about?
Error "reason: no instance(s) of type variable(s) T exist so that int[] conforms to T[]"
Arrays.sort(myArray, Collections.reverseOrder());