Java Tutorial/Hello World!: Difference between revisions

Content deleted Content added
Line 2:
 
Now let's see the program:
 
== Running the Program ==
 
To run the compiled version of the HelloWorld program, on the command line simply type:
 
<code>java HelloWorld</code>
 
Do not add the ".class" extention to the name; the Java interpreter will already be able to locate the file based on the class name you provided, and adding the extention incorrectly will simply confuse it.
 
== Line-by-line analysis ==