/** * Adds a customer or waiter to the appropriate list * * @param type indicates whether the person is a customer or waiter (later) * @param name name of person */ public void setFoodAmount(String choice, int amount) { if (cook != null) cook.setAmount(choice, amount); }