You can refer the below code:
sort(T[] a, Comparator<? super T> c)
Arrays.sort(a, Collections.reverseOrder());
The only way to sort a primitive array in descending order is, first sort the array in ascending order and then reverse the array in place. This is also true for two-dimensional primitive arrays.