Codes for exercises of book Thinking in Java(e4)