?? menutestdrive.java
字號:
package headfirst.iterator.dinermergercafe;import java.util.*;public class MenuTestDrive { public static void main(String args[]) { PancakeHouseMenu pancakeHouseMenu = new PancakeHouseMenu(); DinerMenu dinerMenu = new DinerMenu(); CafeMenu cafeMenu = new CafeMenu(); Waitress waitress = new Waitress(pancakeHouseMenu, dinerMenu, cafeMenu); waitress.printMenu(); waitress.printVegetarianMenu(); System.out.println("\nCustomer asks, is the Hotdog vegetarian?"); System.out.print("Waitress says: "); if (waitress.isItemVegetarian("Hotdog")) { System.out.println("Yes"); } else { System.out.println("No"); } System.out.println("\nCustomer asks, are the Waffles vegetarian?"); System.out.print("Waitress says: "); if (waitress.isItemVegetarian("Waffles")) { System.out.println("Yes"); } else { System.out.println("No"); } }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -