HelloWorldStateContext helloWorldStateContext = new HelloWorldStateContext();
HelloWorld stateHelloWorld = helloWorldStateContext.appendWord("Hello").appendWord("State");
System.out.println(stateHelloWorld.helloWorld());
System.out.println("21. Strategy: ");
HelloWorldStrategyContext helloWorldStrategyContext = new HelloWorldStrategyContext(new DesignPatternHelloWorldStrategy());
System.out.println(helloWorldStrategyContext.helloWorld());
System.out.println("22. Template Method: ");
HelloWorld templateMethodHelloWorld = new TemplateMethodHelloWorld();
System.out.println(templateMethodHelloWorld.helloWorld());