summaryrefslogtreecommitdiff
path: root/sources/examples
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2004-05-04 14:23:16 +0000
committermichelou <michelou@epfl.ch>2004-05-04 14:23:16 +0000
commit9d24efb389c5b0c5107faf7f3255ee5ccd4515cf (patch)
tree85fdae2c4ac5b98d0ab29f14c8e919e7aa7ef8ba /sources/examples
parente4642b1cf5c547afd85d12c730782b5e5bd3de66 (diff)
downloadscala-9d24efb389c5b0c5107faf7f3255ee5ccd4515cf.tar.gz
scala-9d24efb389c5b0c5107faf7f3255ee5ccd4515cf.tar.bz2
scala-9d24efb389c5b0c5107faf7f3255ee5ccd4515cf.zip
*** empty log message ***
Diffstat (limited to 'sources/examples')
-rw-r--r--sources/examples/mobile/sort.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/sources/examples/mobile/sort.scala b/sources/examples/mobile/sort.scala
new file mode 100644
index 0000000000..62818467fa
--- /dev/null
+++ b/sources/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
+}