Some small programs in Java.