How to sort elements of ArrayList?
(a) Collection.sort(listObj);
(b) Collections.sort(listObj);
(c) listObj.sort();
(d) Sorter.sortAsc(listObj);
This question was addressed to me in an international level competition.
My query is from Data Structures-List in chapter java.util – The Collections Framework of Java