❮ Output Methods
Example
System.out.print("Hello World! ");
System.out.print("I will print on the same line.");Definition and Usage
The print() method prints text or values the console.
Note
The print() method does not insert a new line at the end of the output. However, the println() method does.
Syntax
System.out.print( argument );Parameter Values
| Parameter | Description |
|---|---|
| argument | A value or text that should be printed to the console |
Technical Details
| Returns: | No return value. |
|---|