Java book test