@@ -0,0 +1,1354 @@
+package v102316;%0A%0Apublic class HelloWorldFactory %7B%0A    private final String greetingString = %22Hello, world!%22;%0A    private final String goodbyeString = %22Goodbye, world!%22;%0A    private final String surpriseString = %22Woooooooow, world!%22;%0A%0A    private String customString = %22%22;%0A%0A    public HelloWorldFactory() %7B%0A    %7D%0A%0A    public HelloWorldFactory(String customInput) %7B%0A        this.customString = customInput;%0A    %7D%0A%0A    public HelloWorld getBasicHelloWorld() %7B%0A        return new HelloWorld();%0A    %7D%0A%0A    public HelloWorld getGreetingHelloWorld() %7B%0A        HelloWorld helloWorld = new HelloWorld();%0A        helloWorld.setOutput(greetingString);%0A        return helloWorld;%0A    %7D%0A%0A    public HelloWorld getGoodbyeHelloWorld() %7B%0A        HelloWorld helloWorld = new HelloWorld();%0A        helloWorld.setOutput(goodbyeString);%0A        return helloWorld;%0A    %7D%0A%0A    public HelloWorld getSurpriseHelloWorld() %7B%0A        HelloWorld helloWorld = new HelloWorld();%0A        helloWorld.setOutput(surpriseString);%0A        return helloWorld;%0A    %7D%0A%0A    public HelloWorld getCustomHelloWorld() throws NullPointerException %7B%0A        if (customString.isEmpty()) %7B%0A            throw new NullPointerException(%22No custom string defined.%22);%0A        %7D%0A        HelloWorld helloWorld = new HelloWorld();%0A        helloWorld.setOutput(customString);%0A        return helloWorld;%0A    %7D%0A%7D%0A

add HelloWorldFactory