Added state pattern sample

This commit is contained in:
Ilkka Seppala
2014-08-23 08:47:44 +03:00
parent b3d48cc4df
commit 9166d47ffc
7 changed files with 123 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package com.iluwatar;
public class App
{
public static void main( String[] args )
{
Mammoth mammoth = new Mammoth();
mammoth.observe();
mammoth.timePasses();
mammoth.observe();
mammoth.timePasses();
mammoth.observe();
}
}