001package headfirst.singleton.chocolate;
002
003public class ChocolateController {
004        public static void main(String args[]) {
005                ChocolateBoiler boiler = ChocolateBoiler.getInstance();
006                boiler.fill();
007                boiler.boil();
008                boiler.drain();
009
010                // will return the existing instance
011                ChocolateBoiler boiler2 = ChocolateBoiler.getInstance();
012        }
013}