1public static void main(String[] args){
2 System.out.println("Hello World");
3}
1System.out.println("whatever you want");
2//you can type sysout and then ctrl + space
1System.out.print(<string>); //prints in the same line as the previous print
2System.out.println(<string>); //prints in a new line
3
4// Example
5System.out.print("This ");
6System.out.print("will ");
7System.out.print("be ");
8System.out.print("all ");
9System.out.print("in ");
10System.out.print("one ");
11System.out.print("line.");
12
13System.out.println("Hello World!");
14System.out.println("second line");