Report question

Question: Regex in java for finding duplicate consecutive words