My idea is to read all the words in a file in to a LinkedHashSet. And once the file read we can write the contents of LinkedHashSet to a second file.
Type: Posts; User: tcstcs
My idea is to read all the words in a file in to a LinkedHashSet. And once the file read we can write the contents of LinkedHashSet to a second file.
There is a file with data and i have to remove the duplicate words from a file and write the non repeated words to other file. Does anyone have tried the optimal solution for this?