In this example, I will show how to use the java.util.Collections class in order to perform sorting. The Collections class consists of static methods that return or operate on collections, such as Lists, Maps, Sets, etc. All the methods throw a NullPointerException if the collection(s) passed as a parameter is/are null. ArraySortExample Create a class […]