added chain of responsibility sample

This commit is contained in:
Ilkka Seppala
2014-08-17 09:05:37 +03:00
parent a53c217f37
commit 9e7db125a8
10 changed files with 189 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package com.iluwatar;
public class App
{
public static void main( String[] args )
{
OrcKing king = new OrcKing();
king.makeRequest(new Request(RequestType.DEFEND_CASTLE, "defend castle"));
king.makeRequest(new Request(RequestType.TORTURE_PRISONER, "torture prisoner"));
king.makeRequest(new Request(RequestType.COLLECT_TAX, "collect tax"));
}
}