Stuck in the 12/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.>
https://www.codecademy.com/en/courses/learn-java/lessons/data-structures/exercises/hashmap-iterating?action=resume

<In what way does your code behave incorrectly? Include ALL error messages.>
I typed in the exact code on the right, but it still report wrong saying I’m not complete the for each loop correctly, my code is shown below

```
System.out.println(restaurantMenu.size());

	for (String item : restaurantMenu.KeySet()) {

		System.out.println("A " + item + " costs " + restaurantMenu.get(item) + " dollars.");

	}
<do not remove the three backticks above>

The problem is in the “}” or “”{ in the code

In the last 2 lines of code, you have to have just 2 “}” like: }
}

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