6 String interpolation

From Scala 2.10, string interpolation is supported.

For complex expressions add curly braces, e.g.

s"Two times three: ${2 * 3}"

See Also opens in new page

Code editor is using Scalakata.com written by Guillaume Massé