scala> println("Holla World")
Holla World
scala> 2+3
res1: Int = 5
To use a variable, you need to use var keyword:
scala> var x = 45
a: Int = 45
scala> println(x)45
scala> var msg = "Holla World From Scala"
scala> println(msg)
GMgKe586q6suSQnyqZLlGCooeWM
No comments:
Post a Comment