diff options
Diffstat (limited to 'docs/examples/mobile/sort.scala')
-rw-r--r-- | docs/examples/mobile/sort.scala | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/docs/examples/mobile/sort.scala b/docs/examples/mobile/sort.scala index 62818467fa..b0bfe43a54 100644 --- a/docs/examples/mobile/sort.scala +++ b/docs/examples/mobile/sort.scala @@ -1,17 +1,17 @@ -package examples.mobile; +package examples.mobile -import java.net._; -import scala.mobile._; +import java.net._ +import scala.mobile._ -object sort with Application { - val url = new URL("http://scala.epfl.ch/classes/examples.jar"); +object sort extends Application { + val url = new URL("http://scala.epfl.ch/classes/examples.jar") - val location = new Location(url); - val obj = location create "examples.sort"; - val ar = Array(6, 2, 8, 5, 1); - obj[Array[Int], Unit]("println")(ar); - obj[Array[Int], Unit]("sort")(ar); - obj[Array[Int], Unit]("println")(ar); + val location = new Location(url) + val obj = location create "examples.sort" + val ar = Array(6, 2, 8, 5, 1) + obj[Array[Int], Unit]("println")(ar) + obj[Array[Int], Unit]("sort")(ar) + obj[Array[Int], Unit]("println")(ar) Console.println } |