All lessons

Your First Program

6 min · Scala

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

Scala · Your First Program0/5 cleared

Enemy 1 of 5

A Scala program starts in def main, inside an object. Focus on the println line.

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!