Friday, January 31, 2014

Removing Duplicate Lines in a Text File


This post provides a very simple program to remove duplicate lines in a text file with the help of a HashSet. The main() method just contains 14 lines. For another example of HashSet, see Set Operations in Java

Source Code

No comments:

Post a Comment