/ * HelloWorld.java * Purpose: * The classic "Hello, world!" Program * It prints a message to the screen * Author:.. Jane Programmer * as derived from Kernighan and Richie * / class HelloWorld {public static void main ( String [] args) {system.out.println ("Hello, World!");}}
It should be noted that Java is strictly sized. The file name HelloWorld of the file must be consistent with the class name HelloWorld.