Codes that while my learning of the book thinking in java