Java Tutorial/Hello World!: Difference between revisions

Content deleted Content added
m added comment explanation
Line 47:
* Change the text displayed
* Display multiple lines
* Play around with comments
 
Example:
 
<source lang="java">
public class HelloWorld {
public static void main( String[] args ) {
System.out.println("Hello World!!!");
System.out.println("Hello Again");
//System.exitout.println(0"this won't be printed!");
//this is a comment
System.exit(0); //another comment
}
}