HelloWorld templateMethodHelloWorld = new TemplateMethodHelloWorld();
System.out.println(templateMethodHelloWorld.helloWorld());
System.out.println("23. Visitor: ");
HelloWorldCharacterElements helloWorldCharacterElements = new HelloWorldCharacterElements("Hello Visitor!".toCharArray());
HelloWorldCharacterVisitor helloWorldCharacterVisitor = new HelloWorldCharacterVisitor();
helloWorldCharacterElements.accept(helloWorldCharacterVisitor);
System.out.println(helloWorldCharacterVisitor.helloWorld());
}