progs/hello-world.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 31 Oct 2020 16:23:12 +0000
changeset 344 a2ac7e3fa330
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")
}