java system out println code example
Example 1: system.out.println
public static void main(String[] args){
System.out.println("Hello World");
}
Example 2: system.out.println
System.out.println("Hello World");
Example 3: system.out.println()
system.out.println("Hello world!");
Example 4: java system.out.println
System.out.print(<string>);
System.out.println(<string>);
System.out.print("This ");
System.out.print("will ");
System.out.print("be ");
System.out.print("all ");
System.out.print("in ");
System.out.print("one ");
System.out.print("line.");
System.out.println("Hello World!");
System.out.println("second line");