From ba72a27f4aea5bcf2f552cd596a7b72ede78d134 Mon Sep 17 00:00:00 2001 From: michelou Date: Tue, 7 Mar 2006 16:42:36 +0000 Subject: changed version numbering added Ant task 'examples' --- docs/examples/mobile/sort.scala | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'docs/examples/mobile') 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 } -- cgit v1.2.3