Strings In Depth15 / 19
Up next

Multi-line strings

@main def main(): Unit =
  // triple quotes hold raw multi-line text
  val msg = """|line one
               |line two""".stripMargin
  println(msg)
What you're solving

triple quotes with stripMargin