Just formatting App classes to be like the other class files on the project
This commit is contained in:
@ -1,22 +1,21 @@
|
||||
package com.iluwatar;
|
||||
|
||||
/**
|
||||
*
|
||||
* Chain of Responsibility organizes request handlers (RequestHandler) into
|
||||
* a chain where each handler has a chance to act on the request on its
|
||||
* turn. In this example the king (OrcKing) makes requests and the military
|
||||
* orcs (OrcCommander, OrcOfficer, OrcSoldier) form the handler chain.
|
||||
*
|
||||
* Chain of Responsibility organizes request handlers (RequestHandler) into a
|
||||
* chain where each handler has a chance to act on the request on its turn. In
|
||||
* this example the king (OrcKing) makes requests and the military orcs
|
||||
* (OrcCommander, OrcOfficer, OrcSoldier) form the handler chain.
|
||||
*
|
||||
*/
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
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"));
|
||||
|
||||
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"));
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user