5. [Exercise] Scala Basics, Part 2
Activity
When you look at the file LearningScala1.sc
The syntax for Scala allows you to set printf which is formatting
Scala allows you to subsitite variables with s prefix
Scala allows you to substitute expressions with curly brackets
Scala can also use regular expression
Dealing with booleans
You can use >, <, and == to compare across val
Scala you can use == to compare across two strings to see if both are the same string "Picard" == "Picard"
Exercise
Last updated