Login
|
Signup
langref.org
-
scala
add..
all
clojure
cpp
csharp
erlang
fsharp
groovy
haskell
java
ocaml
perl
php
python
ruby
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Strings
Declaration
Define a multiline string
Define the string:
"This
Is
A
Multiline
String"
scala
val text = """This
Is
A
Multiline
String"""
val text = """This
Is
A
Multiline
String"""
scala
Java 1.5 or later
val text = "This\nIs\nA\nMultiline\nString"
object Solution374 extends Application {
val text = "This\nIs\nA\nMultiline\nString"
printf("%s\n", text)
}
Submit a new solution for
scala
There are 24 other solutions in
additional
languages (
clojure
,
cpp
,
csharp
,
erlang
...)