That is a good exam tricky question. Collects.sort(...) can be used to sort a list. The parameter of the sort() methods is a List<T> , not any other type. I tried to pass a hashset to Collections.sort(), but it won't compile.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Regarding LinkedHashSet and LinkedHashMap