Posted On: Feb 22, 2018
The sort collections method is used to sort the collection in Java. This method is defined in the java.util.Collections class and it sorts the collection specified in the ascending order.
We can also specify a comparator to order the elements according to it.
//syntax sort(List list) //it sorts the list in the ascending order.
Never Miss an Articles from us.