Find Duplicate Words In String Java Using Hashmap, Here’s a version of this: return a list of duplicate words in a sentence.