progs/hello-world.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 12 Aug 2020 00:56:20 +0100
changeset 335 7e00d2b13b04
parent 202 f7bcb27d1940
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")
}