Comments
 int i = 5; if (i <10)
  {
  System.out.println("i is less than 5);
  }
 // Initialize variables... int age = 28; // Declare and initialize age /*
This is a sample class which is used to demonstrate
the use of multi-line comments.  it was written by
Selena Sol for the Web Programming Tutorial
*/
        // Define an Example class with a single
        // main() method which will print out
        // "Hello Cyberspace!" to standard output.
public class Example
  {
  public static void main(String[] args)
    {
    System.out.println("Hello Cyberspace!");
    }
  }
/*
This is a sample class which is used to demonstrate
the use of multi-line comments.  it was written by
Selena Sol for the Web Programming Tutorial.  This comment
does not appear in the java documentation
*/
        /** 
        Define an Example class with a single
        main() method which will print out
        "Hello Cyberspace!" to standard output.
        This comment appears in the javadoc.
        */
public class Example
  {
  public static void main(String[] args)
    {
    System.out.println("Hello Cyberspace!");
    }
  }
Additional Resources:
 Table of Contents Printing to Standard Output  | 
| 
		Hosted by Graphics & Media Lab
	 http://graphics.cs.msu.su  | 
 | 
mailto: Laboratory |