SyntaxFix
Write A Post
Hire A Developer
Questions
Just add all your elements to a Set: it does not allow it's elements to be repeated. If you need a list afterwards, use new ArrayList(theSet) constructor afterwards (where theSet is your resulting set).
Set
ArrayList(theSet)
theSet