Hi,
I'm having problems with week 3 exercise 57 on course the for-each loop.
An array list is created called words. The while loop starts and prints for the user to input a word. Then it reads the string and adds the word to the array list. The if statement starts and if the user does not input data, it prints out a line and should tell the user the inputted data. After the data has printed it breaks. Meanwhile the for loop is running but since String word is already defined, i'm getting an error. Not sure what i am doing wrong.
Best regards
Jake