Ad space (banner)
🔺Scala Lessons
- 01Setting up (what you'll need)
- 02Your first output (println)
- 03Variables (val and var)
- 04Type annotations and basic types
- 05Branching (the if expression)
- 06Repeating (the for expression)
- 07Writing your own function
- 08Repeating (the while loop)
- 09Working with lists (List)
- 10Working with maps (Map)
- 11Classes (object orientation)
- 12case class
- 13Inheritance and traits
- 14Pattern matching (the match expression)
- 15The Option type (null safety)
- 16Higher-order functions, map and filter
- 17object (singletons)
- 18Strings and string interpolation
- 19for comprehensions
- 20[Project] Build a small inventory system
Lesson 1 / 20
Setting up (what you'll need)
To run Scala you will need the following. Scala takes ideas from both object-oriented and functional programming, and because it runs on the Java virtual machine (JVM) it can be combined directly with existing Java code.
- A JDK (Java Development Kit): required, since Scala runs on the JVM.
- Scala itself: install it from the official site or through the
sbtbuild tool. - For an editor, the standard choice is VS Code with the
Metalsextension.
← Previous lesson
Next lesson →
Ad space (banner)
Ad space (in-article)
