11. It prints 11 yet it still won't let me progress


#1

I'll join in on this since I'm having the same issue. My code:

import java.util.HashMap;

public class Restaurant {
	public static void main(String[] args) {
    
    HashMap<String, Integer> restaurantMenu = new
      HashMap<String, Integer>();
    
    restaurantMenu.put("Turkey Burger", 13);
    restaurantMenu.put("Naan Pizza", 11);
    restaurantMenu.put("Cranberry Kale Salad", 10);
    
    System.out.println(restaurantMenu.get ("Naan Pizza"));


	}
}

It prints 11 yet it still won't let me progress.


11/13 array strings
#2

Just refresh your browser


#3

Same Issue. I even refreshed my browser.


#4

Please some one help us with this issue


#5

Hi Shankar,

If you start a new topic and post all of your code you will attract more helpers.


#6

Use sample code then replace HashMap name with restaurantMenu and value with "Naan Pizza".
this work for me!