1//print and create new line after
2System.out.println("text");
3System.out.println(String);
4//You can use any variable type, not just strings, although
5//they are the most common
6
7//Print without creating a new line
8System.out.print("text");
9System.out.print(String);
1System.out.println("Hello, World!");
2/*type System the class, the .out the field, and the println short
3for print line */
4
1System.out.println("whatever you want");
2//you can type sysout and then ctrl + space
1
2public class hello {
3
4 public static void main(String[] args) {
5 String hello = "Hello";
6 System.out.println(hello);
7
8 }
9}
10
11or
12
13public class hello {
14
15 public static void main(String[] args) {
16
17 System.out.println("Hello");
18 }
19}