3 ms·
1 //Tutorial file HelloWorld.x10 2 class HelloWorld { 3 public static def main(argv:Rail[String]) { 4 x10.io.Console.OUT.println("Hello, World"); 5
by quesera 16y ago
1 //Tutorial file HelloWorld.x10
2 class HelloWorld {
3 public static def main(argv:Rail[String]) {
4 x10.io.Console.OUT.println("Hello, World");
5 }
6 }
...ayfkm?
You've already failed.
- Tiomaidh 16y agoOur first attempt won't work. ... public static def main(argv:Rail[String]) { This line is just the same as in the Hello, World example. (In fact, the Hello, World example had a latent version of the same bug. It compiled because we never tried to do anything with argv, and thus never tried to do anything that violated the place rules with it.)
- Tiomaidh 16y agoI never thought I'd hear myself say that Java looked a little bit elegant.