println

open fun println(x: String?)

Prints a String and then terminates the line. This method behaves as though it invokes .print and then .println.

Parameters

x

The String to be printed.


open fun println()

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