public class HelloWorld{
	public static void main(String[] args){
		System.out.println("Hello World!");
	}
}

public class HelloWorld{
	public static void main(String[] args){
		sayHelloWorld();
	}

	public static void sayHelloWorld(){
		System.out.println("Hello World!");
	}
}

add a print method