Output

The System.out stream allows a Java program to output characters to the console. It has several methods that allow printing output. Some of the significant ones are listed below.

Output

.print()
Prints its argument to the console.
.printf()
Prints output to the console using various formatting commands.
.println()
Prints its argument to the console followed by a new line.

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn Java on Codecademy