Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
finding duplicates in a file
I want to go over a file i have that has a list of names and get rid of the duplicates.
the file i have is in this format:
and so on and forth..
can someone please guide me on how to begin.. how can i read from the file ofcourse.. I think FileReader or BufferedReader will do, but my main problem is how to determine that
is a duplicate of:
i guess i can go over all the string and check it up against all the rown, but this is with very poor complexity and that file is quite big and will take too long.