Learn Scala 3 from your first println to a small project, using its clean indentation syntax, immutable values and powerful collections.
8 lessons, 16 exercises. Runs Scala 3.10.
Not started
Hello, output
Write a Scala 3 program with an @main method, print text with println and print, and add comments.
Values and variables
Store data with val and var, meet Scala's basic types, and build text with string interpolation.
Reading input and arithmetic
Read lines from standard input with readLine, convert them to numbers, and do arithmetic with Scala's operators.
Making decisions
Choose between paths with if/then/else and match, using comparison and boolean operators.
Loops
Repeat work with for loops over ranges, while loops with a condition, and leave a loop early with boundary and break.
Functions
Define methods with def, give them parameters and return types, and understand where names are visible.
Collections
Store many values in Lists, Vectors and ArrayBuffers, look things up in Maps, and transform them with map, filter and friends.
Strings and a small project
Slice, search, split and transform strings, then combine everything from this course into a small grade report program.
Your progress is saved in this browser. Sign in to keep it on every device.