Exercises from "The art and science of Java"