Hello World in Java

This example shows how to run a simple program in Java:

Here's the output:

foo: 3
bar: 42