// Zorah Fung, CSE 142 // You can use any type for a parameter, even Strings! public class Pizza { public static void main(String[] args) { orderPizza("pepperoni"); orderPizza("sausage"); orderPizza("mushroom and olive"); } // Prints out confirmation of our order for a pizza with the given topping. public static void orderPizza(String toppings) { System.out.println("Welcome to Papa's DominoHut"); System.out.println("Thank you for ordering a " + toppings + " pizza"); System.out.println(); } /* No longer need these specific methods because we have one general pizza method That allows us to order a pizza with any topping we want. public static void orderSausage() { System.out.println("Welcome to Papa's DominoHut"); System.out.println("Thank you for ordering a sausage pizza"); System.out.println(); } public static void orderMushroomAndOlive() { System.out.println("Welcome to Papa's DominoHut"); System.out.println("Thank you for ordering a mushroom and olive pizza"); System.out.println(); } */ }