How to remove duplicate words using java -


I have a text file and I want to remove duplicate words in it. In my text file, there are words like

  words I  

I remove duplicate words. But words ending 'pap', 'tha' are considered as separate words and are not capable of deleting as a duplicate word. If I remove 'P', 'tha', then it is removed from some other words like sb, sash please use any suggestion to solve this problem using java. Thank you. In advance.

I think that I set up with a custom combination (such as) that you defined You can do any kind of like you


Comments