diff options
author | michelou <michelou@epfl.ch> | 2006-03-07 16:42:36 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-03-07 16:42:36 +0000 |
commit | ba72a27f4aea5bcf2f552cd596a7b72ede78d134 (patch) | |
tree | 990fb74d18413b0de47fc8d9d22d0fc304c27b18 /docs/examples/mobile | |
parent | 3e27d741d1e8926c6d9623d459ea1de034cd8ac4 (diff) | |
download | scala-ba72a27f4aea5bcf2f552cd596a7b72ede78d134.tar.gz scala-ba72a27f4aea5bcf2f552cd596a7b72ede78d134.tar.bz2 scala-ba72a27f4aea5bcf2f552cd596a7b72ede78d134.zip |
changed version numbering
added Ant task 'examples'
Diffstat (limited to 'docs/examples/mobile')
-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 } |