DukeZhou
12
Q:

how do you print code in java

System.out.println("Hello, World!");
/*type System the class, the .out the field, and the println short 
for print line */
11
System.out.println("Your text here.");
3
System.out.println("Hello World!");
1
System.out.print(46); // prints on the same line
System.out.println("Tree"); // prints code on a new line
0

New to Communities?

Join the community