Share via


PrintStream.println

Class Overview | Class Members | This Package | All Packages

Syntax 1

public void println()

Description

Finish the current line by writing a line separator. The line separator string is defined by the system property line.separator, and is not necessarily a single newline character ('\n').

Syntax 2

public void println( boolean x )

Description

Print a boolean, and then finish the line.

See Also

print

Syntax 3

public void println( char x )

Description

Print a character, and then finish the line.

See Also

print

Syntax 4

public void println( int x )

Description

Print an integer, and then finish the line.

See Also

print

Syntax 5

public void println( long x )

Description

Print a long, and then finish the line.

See Also

print

Syntax 6

public void println( float x )

Description

Print a float, and then finish the line.

See Also

print

Syntax 7

public void println( double x )

Description

Print a double, and then finish the line.

See Also

print

Syntax 8

public void println( char x[] )

Description

Print an array of characters, and then finish the line.

See Also

print

Syntax 9

public void println( String x )

Description

Print a String, and then finish the line.

See Also

print

Syntax 10

public void println( Object x )

Description

Print an Object, and then finish the line.

See Also

print