https://www.hackerrank.com/challenges/duplicate-word/problem?isFullScreen=true Java Regex 2 - Duplicate Words | HackerRank Identify repeated words in the sentence, and delete all recurrences of each word after the very first word. www.hackerrank.com https://docs.oracle.com/javase/tutorial/essential/regex/pattern.html Methods of the Pattern Class (The Java™ Tutorials > Essential Java Classes > Re..