1/13

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
what is wrong

<In what way does your code behave incorrectly? Include ALL error messages.>

```

Replace this line with your code.

<do not remove the three backticks above>

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,

ArrayList<String>

and,

as,

new ArrayList<String>()

?

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