I read data from a text file, so there may be
John Mary John Leeds
and I need to get 3 elements in the ArrayList, cause there are only 3 unique values in the file.
I can use the hidden HashTable and add information to it, then simply copy its data into the List. Are there other solutions?