All lessons

Your First Program

6 min · Kotlin

Write and run your very first Kotlin program — right here on the page.

Kotlin · Your First Program0/5 cleared

Enemy 1 of 5

A Kotlin program starts in fun main. println prints a message — the text goes inside the parentheses and quotes.

Press Run.

You
Pincer Crab

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: Hello, World!