Output

StevenSwiniarski's avatar
Published Jun 25, 2022
Contribute to Docs

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.

All contributors

Contribute to Docs

Learn Java on Codecademy