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 learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.