things: Port to Java.

It seemed only appropriate to provide a Java example of the object-oriented programming style.