I need to create a Java structure to store a large number of String
. Then I basically need to add new strings and also check if some string is already present... The order of the strings is not important.
I don't know many Java datatypes but the typical List
, Set
and Map
, so... what would be the fastest datatype for this scenario? May it be a TreeSet
or is there any other I'm missing?