Adding Ch 3 Java Example.