So, it is much more flexible than the traditional array. Linux Initialize ArrayList with values in Java. – For Descending order, just pass Collections.reverseOrder() as input parameter to sorting method above. In the below example we have used the following statement for sorting in reverse order. MergeSort follows the Divide and Conquer paradigm. In this example, it shows the use of Collections.sort(‘List’) to sort an ArrayList. I have these objects: ArrayList