SyntaxFix
Write A Post
Hire A Developer
Questions
HashSet<String> (or) any Set implementation may does the job for you. Set don't allow duplicates.
HashSet<String>
Set
Here is javadoc for HashSet.