// program to get ingredients based on menu // hussein suleman // 29 march 2004 public class problem9 { public static void main (String [] args) throws java.io.IOException { Menu souper = new Menu (); souper.print (); // output options int choice = Keyboard.readInt (); // get selection while (choice != 4) // continue until exitted { System.out.println (); // leave a line switch (choice) // output ingredients { case 1 : System.out.println ("Add chilli"); case 2 : System.out.println ("Add chicken"); case 3 : System.out.println ("Add cheese"); } souper.print (); // output options choice = Keyboard.readInt (); // get selection } } }