package hello;

/**
 * Simple Object-orientated take on Hello World.
 */
public class HelloWorld {

    private String name;

    public HelloWorld(String name) {
        this.name = name;
    }

    public HelloWorld() {
        this("World");
    }

    public String greetMe() {
        return "Hello " + name + "!";
    }

    public static void main(String[] args) {
        HelloWorld helloWorld;

        if (args.length > 0) {
            helloWorld = new HelloWorld(args[0]);
        } else {
            helloWorld = new HelloWorld();
        }

        System.out.println(helloWorld.greetMe());
    }

}


@@ -260,42 +260,53 @@
 lic 
-String greetMe() %7B%0A        return 
+void sayHello() %7B%0A        System.out.println(
 %22Hel
@@ -322,16 +322,17 @@
 me + %22!%22
+)
 ;%0A    %7D%0A
@@ -569,35 +569,16 @@
         
-System.out.println(
 helloWor
@@ -584,17 +584,17 @@
 rld.
-greetMe()
+sayHello(
 );%0A 
@@ -600,10 +600,8 @@
     %7D%0A%0A%7D
-%0A%0A

Made HelloWorld print the message instead of returning a String