Category Archives: Java Sorting Arrays Programs

Java Arrays sort in Descending order

Task: How to use Java Arrays sort method for Descending order. How To Use Arrays.sort() method to Sort Arrays in Descending Order? In a previous post, we wrote a Java program to sort array in ascending order using Arrays.sort(array-name) method. We can use the following syntax to sort in descending order: Arrays.sort(array, Collections.reverseOrder()); Here we… Read More »

Loading