DEV Community

Discussion on: Java interview prep: 15 Java interview questions

Collapse
 
aminmansuri profile image
hidden_dude

In practice I've used TreeSet as an alias of "ordered list with no repetitions". HashSet I've used to check what has been processed vs what still needs to be processed.

But often I just end up using a Map instead. They're often more useful.