Save a list of unique Strings in the ArrayList
03:25 10 Feb 2010

I read data from a text file, so there may be:

John
Mary
John
Leeds

I now need to get 3 unique elements in the ArrayList, because there are only 3 unique values in the file output (as above).

I can use a HashTable and add information to it, then simply copy its data into the List. Are there other solutions?

java collections arraylist