Data Type in Scala
Updated: 01/08/2022 by Computer Hope
The rules Scala uses for literals are simple and intuitive.
This section explains all basic Scala Literals.
String Literals :
"Hello,\nWorld!"
"This string contains a \" character."
Multi-Line Strings:
"""the present string
div three
lines.""
Character Literals
'a'
'\n'
'\t'