progs/hello-world.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 04 Nov 2020 15:35:31 +0000
changeset 351 591b9005157e
parent 335 7e00d2b13b04
child 353 bb6074814a73
permissions -rw-r--r--
updated

object Hello //extends App 
{ 
  var x = 1 

  println("test")

  x = x + 2

  println("foo")

  synchronized { x = x + 1 }

  println("hello world")
}