The first line of code in this exercise is incorrect. The variable words needs to be declared as a String array.



Incorrect:

String words = {"I", "love", "coffee", "I", "love", "tea" };



Correct:

String[] words = {"I", "love", "coffee", "I", "love", "tea" };