bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java Output print() Method

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind Java Output print() Method?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

System.out.___("Hello World! ");
3Order

Put the learning moves in the order that makes the concept easiest to apply.

The print() method prints text or values the console.
Definition and Usage
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