Monthly Archive: June 2013

Sorting in collection framework

We can sort the elements of: String objects Wrapper class objects User-defined class objects Collections class provides static methods for sorting the elements of collection.If collection elements are of Set type, we can use TreeSet. …