Solutions to Java Puzzlers' problems.