If you want to change selection, open document below and click on "Move attachment"
First Steps in Scala rintln function prints the passed string to the standard output, similar to
System.out.println in Java.
Step 2. Define some variables [link]
Scala has two kinds of variables, vals and vars.
A val is similar to a final variable
in Java. <span>Once initialized, a val can never be reassigned. A var, by contrast, is similar to a non-final
variable in Java. A var can be reassigned throughout its lifetime.
Here's a val definition:
scala> val msg = "Hello, world!&quo
Summary
status
not read
reprioritisations
last reprioritisation on
suggested re-reading day
started reading on
finished reading on
Details
Discussion
Do you want to join discussion? Click here to log in or create user.