Scala Basics

The main method is called when the program starts. val binds an immutable value, and println writes it.

Scala
object Main {
  def main(args: Array[String]): Unit = {
    val name = "Ada"
    println(s"Hello, $name")
  }
}
Read the full lesson