// This program prints a sugar-cookie recipe public class BakeCookies { public static void main(String[] args) { makeBatter(); // two batches of baking doBaking(); doBaking(); doDecorating(); } // make the batter public static void makeBatter() { System.out.println("Mix the dry ingredients."); System.out.println("Cream the butter and sugar."); System.out.println("Beat in the eggs."); System.out.println("Stir in the dry ingredients."); System.out.println(); } // do the baking for the second batch public static void doBaking() { System.out.println("Set the over temperature."); System.out.println("Set the timer."); System.out.println("Place a batch of cookies into the oven."); System.out.println("Allow the cookies to bake."); System.out.println(); } // take care of the decoration public static void doDecorating() { System.out.println("Mix ingredients for frosting."); System.out.println("Spread frosting and sprinkles."); } }