Chapter 3 of "oca java se 7 Programmer I Study Guide (Exam 1Z0-803)" is free via PDF:
(Look for the "Chapter 3" download link on the left side of the page)
Jacek Laskowski wrote:Thanks Robert! I immediately immersed in its reading and just on page 86 found a typo - GoldCoins should be goldCoins, I believe. Also, I don't understand why you compare isCaptain to true since you could use isCaptain directly - it's of boolean type after all?
"... and just on page 86 found a typo - GoldCoins should be goldCoins, I believe."
Good catch, this is indeed a typo and will be added to a new errata list for the book, that will be available online. Thank you very much for calling this out.
"Also, I don't understand why you compare isCaptain to true since you could use isCaptain directly"
This is an excellent observation as well. I believe you are referring to a "best practice", that we could have indeed followed. But I think in the context of the diagram and for novice programmers, showing the full operation was a better decision. On second thought, perhaps it wasn't the best decision. We'll need to consider refactoring this as well.
Thanks again and please let use know if you find anything else,
Francesco Valle wrote:Thank you for the preview! ;)
When do you think the book will be available on the online shops?
The book is available pre-order from sites like Amazon, Books-a-Million and Barnes & Noble.
The book is printed and bound, so as soon as their warehouses get them, they'll be available, which should be soon.
Amazon currently has the book at 40% off.
Thanks for your interest,