Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

More

  • Lengths of array

  • Left facing arrow <-

object Names {
    def main(args:Array[String]) {
        val names = List("Foo", "Bar")
        //List <String> names = new ArrayList<String>()
        println(names)
        //names.add("Zorg")
        //println(names)
    }
}
object Try {
    def main(args:Array[String]) {
        var counter:Int = 0
        println(counter)
        counter = 1
    }
}