« Return to the blog entry
If you use a TreeSet instead of an ArrayList, you don't have to check for duplicates and you don't have to sort the collection.
If you use a TreeSet instead of an ArrayList, you don't have to check for duplicates and you don't have to sort the collection.