Thinking in Java code and exercise!