I'm practicing web scraping with java and there is a string variable which always contain repetitive sentence. For example:
String sentence = "This is sentence one. This is sentence one.";
Can someone help me in removing duplicate sentence from a string?