what is wrong

Replace this line with your code.


Sure would appreciate if you did that, instead of posting a picture. Please include a link to the exercise, as well. Thanks.

As for the highlighted code, I'm not sure a space character is allowed in that or the previous mention of same at left.


the issue is that the instructions say "Inside of the main method and before the for each loop, create an ArrayList called sports that stores String types."
however when i did that it says that there is a mistake

`ArrayList <String> sports = new ArrayList <String>();
		for(String sport : sports) {


that is the only for loop that is not commented


Should this be written,




new ArrayList<String>()



This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.