The answers for exercise in Thinking in Java(Fourth Edition)