if we want to use we need to firdt change the set into list and then only we can make use of collections special methods like sort and reverse() ...
One of the nasty little traps a Java developer can run into occurs when Collection.contains(Object) is not used with appropriate understanding. I demonstrate this potential trap in this post. This is ...