I've been using TreeMap<String,Object> to store objects as they don't allow entries with duplicate keys,
Is there a a similar data structure that only takes in a value/key and doesn't allow duplicate entries?
so something like Type<String> where all the Strings have to be different (or they overwrite)
until now ive just been using Vector<String> with checks to see if an entry is already in the vector before adding it which is a bit messy.
 
    
 
     
     
    