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:

$ onion Hello.on

Then you can see the Hello, World! message on the console.