updated java cookbook