SyntaxFix
Write A Post
Hire A Developer
Questions
You could just use a HashSet<String> to maintain a collection of unique objects. If the Integer values in your map are important, then you can instead use the containsKey method of maps to test whether your key is already in the map.
HashSet<String>
Integer
containsKey