bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java Output print() Method

❮ 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

ParameterDescription
argumentA value or text that should be printed to the console

Technical Details

Returns:No return value.

Previous

Java Output Methods

Next

Java Output printf() Method