Output
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.
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.