mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-25 22:38:04 +02:00
misc
This commit is contained in:
parent
2a58ef985d
commit
25732f4421
8 changed files with 91 additions and 32 deletions
|
@ -0,0 +1,15 @@
|
|||
import x10.io.Console;
|
||||
|
||||
class HelloWholeWorld {
|
||||
public static def main(args:Rail[String]):void {
|
||||
if (args.size < 1) {
|
||||
Console.OUT.println("Usage: HelloWholeWorld message");
|
||||
return;
|
||||
}
|
||||
|
||||
finish for (p in Place.places()) {
|
||||
at (p) async Console.OUT.println(here+" says hello and "+args(0));
|
||||
}
|
||||
Console.OUT.println("Goodbye");
|
||||
}
|
||||
}
|
6
documents/Programmierparadigmen/scripts/x10/hello-world.x10
Executable file
6
documents/Programmierparadigmen/scripts/x10/hello-world.x10
Executable file
|
@ -0,0 +1,6 @@
|
|||
// file HelloWorld.x10
|
||||
public class HelloWorld {
|
||||
public static def main(args: Array[String](1)){
|
||||
x10.io.Console.OUT.println("Hello, World");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue