scala: Add an example program in Scala using Java bindings

Just an example program I used when testing Java bindings. We already have similar thing in Java so it is of limited utility. But it works and I find Scala nicer, might as well preserve for posterity.