Title here
Summary here
Our first program will print the classic “hello world” message. Here’s the full source code.
To run the program, save the code in a file named HelloWorld.scala
and use scala
to execute it.
Sometimes we’ll want to build our programs into binary files. In Scala, this usually means compiling it into a .class or a JAR (Java ARchive) file.
First, compile the code using scalac
:
We can then execute the compiled code using the scala
command:
Now that we can run and build basic Scala programs, let’s learn more about the language.