Added state pattern sample
This commit is contained in:
16
state/src/main/java/com/iluwatar/App.java
Normal file
16
state/src/main/java/com/iluwatar/App.java
Normal 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();
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user