changeset 335 | 7e00d2b13b04 |
parent 202 | f7bcb27d1940 |
child 353 | bb6074814a73 |
--- a/progs/hello-world.scala Thu Apr 23 14:49:54 2020 +0100 +++ b/progs/hello-world.scala Wed Aug 12 00:56:20 2020 +0100 @@ -1,3 +1,14 @@ -object Hello extends App { +object Hello //extends App +{ + var x = 1 + + println("test") + + x = x + 2 + + println("foo") + + synchronized { x = x + 1 } + println("hello world") }