How to Print

Sample Code

public class PrintToConsole {

	public static void main(String[] args) {
		// console is a display board located at eclipse footer.
		// to print out any message to the console
		System.out.print("Hello World");
		// to print any text and move to next line using '\n'
		System.out.print("Hello World\n");
		// to print any text and move to next line without '\n'
		System.out.println("Hello World");
	}
}