Think in java 4th practice code