progs/hello-world.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 29 Aug 2020 16:05:59 +0100
changeset 342 aa47abb9e723
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")
}