package factoryPattern;
/*
|===========================================================
|
|-----------------------------------------------------------
|	The Cookie is the 'product' in this pattern
|-----------------------------------------------------------
|
|===========================================================
|
*/
public class Cookie {
	protected String flavour;
	protected String name;
	protected String topping;

	public Cookie() {

	}

	public void mix() {
		System.out.println("Mixing in the " + flavour);
	}

	public void bake() {
		System.out.println("baking with " + topping + " on top");
	}

	public void box() {
		System.out.println("Your " + name + " is ready now.");
	}
}

@@ -339,16 +339,17 @@
  Cookie 
+%0A
 %7B%0A%09prote
@@ -369,16 +369,18 @@
 lavour;%0A
+%09%0A
 %09protect
@@ -395,16 +395,18 @@
 g name;%0A
+%09%0A
 %09protect
@@ -466,24 +466,27 @@
 oid mix() %7B%0A
+%09%09%0A
 %09%09System.out
@@ -545,24 +545,27 @@
 id bake() %7B%0A
+%09%09%0A
 %09%09System.out
@@ -612,24 +612,24 @@
  top%22);%0A%09%7D%0A%0A
-
 %09public void
@@ -637,16 +637,19 @@
 box() %7B%0A
+%09%09%0A
 %09%09System

Update Cookie.java