Scala Properties - chrisbitm/python GitHub Wiki
Length
def main(args: Array[String]): Unit = {
val str1: String = "Game Over"
print(str1.length) // 9
}
str1
stores the StringGame Over
- The number of characters that make the String is Outputted to Console