package org.xander.behavioral.iterator;

import java.util.Hashtable;
import java.util.Iterator;

public class CafeMenu implements Menu {
    Hashtable menuItems = new Hashtable();

    public CafeMenu() {
        addItem("Veggie Burger and Air Fries",
                "Veggie Burger on a whole wheat bun, lettuce, tomato, and fries",
                true,
                3.99);
        addItem("Soup of the day",
                "Soup of the day, with a side of salad",
                false,
                3.69);
        addItem("Burrito",
                "A large burrito, with whole pinto beans, salsa, guacamole",
                true,
                4.29);
    }

    public void addItem(String name, String description, boolean vegetarian, double price) {
        MenuItem menuItem = new MenuItem(name, description, vegetarian, price);
        menuItems.put(menuItem.getName(), menuItem);
    }

    @Override
    public Iterator createIterator() {
        return menuItems.values().iterator();
    }
}

@@ -143,16 +143,34 @@
 ashtable
+%3CString, MenuItem%3E
  menuIte
@@ -187,16 +187,18 @@
 ashtable
+%3C%3E
 ();%0A%0A   
@@ -952,16 +952,26 @@
 Iterator
+%3CMenuItem%3E
  createI

Update CafeMenu.java