Thursday, March 29, 2012

Scala Basics - Variables

You can define variable by "var" keyword

scala> var message="Hello Scala" message: java.lang.String = Hello Scala scala> var count=7 count: Int = 7
These two example we have created variables of type String and Int.Remember you can able to change message and count binding, since it's declared by "var".

No comments:

Post a Comment