var is immutable



examples/VarIsMutable.scala
object VarIsMutable {
    def main(args:Array[String]) {
        var counter:Int = 0
        println(counter)
        counter = 1
        println(counter)
    }
}

0
1