You can write so-called "Hello, World" program as the followings:
System::out.println("Hello, World!");
Save the above program as Hello.on and execute the following command:
Hello.on
$ onion Hello.on
Then you can see the Hello, World! message on the console.
Hello, World!