Scala String Interpolation

Scala String Interpolation is how Strings can be constructed in Scala. It will be the way you can add Values inside a String.

Strings in programming languages are chains of character, for instance:"Hello World".

You might have noticed the string is contained between quotes:"...".

An other thing to notice is thespreceding the first quote. It is necessary to transform$hinto the content of the valueh.

Reveal more information and clues
Load Exercise