bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java Output println() Method

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind Java Output println() 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.

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

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

The println() method prints text or values to the console, followed by a new line.
Definition and Usage
Java Output println() Method

❮ Output Methods

Example

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

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

Technical Details

Returns:No return value.

Previous

Java Output printf() Method

Next

Java Arrays Class