Java Output println() Method
Example
Print some text to the console, followed by a new line:
System.out.println("Hello World!");
System.out.println("I will print a new line.");
Definition and Usage
The println() method prints text or values
to the console, followed by a new line.
This method is often preferred over the print() method, as the new line makes
the output of code easier to read.
Syntax
System.out.println(argument);
Parameter Values
| Parameter | Description |
|---|---|
| argument | A value or text that should be printed to the console |
Technical Details
| Returns: | No return value. |
|---|
❮ Output Methods