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