001package headfirst.decorator.starbuzz;
002
003public class StarbuzzCoffee {
004
005        public static void main(String args[]) {
006                Beverage beverage = new Espresso();
007                System.out.println(beverage.getDescription()
008                                + " $" + beverage.cost());
009
010                Beverage beverage2 = new DarkRoast();
011                beverage2 = new Mocha(beverage2);
012                beverage2 = new Mocha(beverage2);
013                beverage2 = new Whip(beverage2);
014                System.out.println(beverage2.getDescription()
015                                + " $" + beverage2.cost());
016
017                Beverage beverage3 = new HouseBlend();
018                beverage3 = new Soy(beverage3);
019                beverage3 = new Mocha(beverage3);
020                beverage3 = new Whip(beverage3);
021                System.out.println(beverage3.getDescription()
022                                + " $" + beverage3.cost());
023        }
024}