Basic Input Output

Print

public class HelloWorld {
  public static void main(String[] args) {
		System.out.print("Hello")
		System.out.print(" World!") /* note this prints on the same line */
		
    System.out.println("Hello World!"); // note each print, creates a new line
  }
}

Comment

// single line

/*
multi line
*/

/**
* java doc comment
*/