From 53a3cc7b17f4cf97075b7e71720777fd84109696 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Fri, 16 Dec 2005 18:44:33 +0000 Subject: Created proper 'docs' folder for new layout. --- docs/examples/mobile/sort.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/examples/mobile/sort.scala (limited to 'docs/examples/mobile') diff --git a/docs/examples/mobile/sort.scala b/docs/examples/mobile/sort.scala new file mode 100644 index 0000000000..62818467fa --- /dev/null +++ b/docs/examples/mobile/sort.scala @@ -0,0 +1,17 @@ +package examples.mobile; + +import java.net._; +import scala.mobile._; + + +object sort with 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); + Console.println +} -- cgit v1.2.3