// This program displays a delicious recipe for baking cookies. public class BakeCookies { public static void main(String[] args) { makeBatter(); // can run the same method more than once (bake a double batch) System.out.println("Set the oven temperature."); bakeBatch(); bakeBatch(); decorate(); } // Step 1: Make the cake 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."); } // Step 2: Bake a batch of cookies. public static void bakeBatch() { // repeated 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."); } // Step 3: Decorate the cookies. public static void decorate() { System.out.println("Mix ingredients for frosting."); System.out.println("Spread frosting and sprinkles."); } }