001package headfirst.iterator.dinermergeri; 002 003public class MenuTestDrive { 004 public static void main(String args[]) { 005 PancakeHouseMenu pancakeHouseMenu = new PancakeHouseMenu(); 006 DinerMenu dinerMenu = new DinerMenu(); 007 Waitress waitress = new Waitress(pancakeHouseMenu, dinerMenu); 008 waitress.printMenu(); 009 waitress.printVegetarianMenu(); 010 011 System.out.println("\nCustomer asks, is the Hotdog vegetarian?"); 012 System.out.print("Waitress says: "); 013 if (waitress.isItemVegetarian("Hotdog")) { 014 System.out.println("Yes"); 015 } else { 016 System.out.println("No"); 017 } 018 System.out.println("\nCustomer asks, are the Waffles vegetarian?"); 019 System.out.print("Waitress says: "); 020 if (waitress.isItemVegetarian("Waffles")) { 021 System.out.println("Yes"); 022 } else { 023 System.out.println("No"); 024 } 025 026 } 027}