Stuck in the 12/13


#1



https://www.codecademy.com/en/courses/learn-java/lessons/data-structures/exercises/hashmap-iterating?action=resume


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.");

		}


#2

The problem is in the "}" or ""{ in the code


#3

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


#4

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