summaryrefslogtreecommitdiff
path: root/docs/examples/mobile
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/mobile')
-rw-r--r--docs/examples/mobile/sort.scala22
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
}