Syntax

Kotlin Print Output Syntax

In Kotlin, print output: prints a line — println("Hello")

Quick Answer

Syntax
println("Hello")
KotlinSyntax

Print Output

Code example
println("Hello")

Prints a line.

Learn More

How to print output in Kotlin

  1. Open your Kotlin file or editor.
  2. Copy the example, then replace its sample names and values for your code.

Kotlin Print Output Syntax

Use println("Hello").

Related Syntax References

Frequently asked questions

What is the Kotlin syntax for print output?

Use this pattern: println("Hello")

Can I copy this Kotlin code example?

Yes. Use Copy code and adapt the example to your program.

Is this Kotlin syntax different on Mac or Windows?

No. The language syntax is the same across operating systems.

Official source · How we verify