001package headfirst.templatemethod.simplebarista;
002
003public class Coffee {
004
005        void prepareRecipe() {
006                boilWater();
007                brewCoffeeGrinds();
008                pourInCup();
009                addSugarAndMilk();
010        }
011
012        public void boilWater() {
013                System.out.println("Boiling water");
014        }
015
016        public void brewCoffeeGrinds() {
017                System.out.println("Dripping Coffee through filter");
018        }
019
020        public void pourInCup() {
021                System.out.println("Pouring into cup");
022        }
023
024        public void addSugarAndMilk() {
025                System.out.println("Adding Sugar and Milk");
026        }
027}