String Duplicate Words Ignore Case
String containing words separated by the " " (space) character, write a method
true if any word appears twice in the
Also, you should ignore case: so "Chuchu" and "chuchu" are considered the same word.
assert that the passed
String is not
So, for example, given the
String "Wow that is amazing", you would return
but given the
String "Chuchu chuchu xyz" you would return
Our intention is for you to solve this problem using a
Set, but there are also solutions that use a
You should not use a nested loop to solve this problem.
You may want to use the
toLowerCase method of Java