Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
Page x lower-left image |
The image on this page (and many others, but not all of them) is inverted in my PDF viewer (Safari), so they guy is wearing a white shirt with a black collar: it is like looking at a photo negative. There are similar "negative" images on page xiii, 2, 6, 7, 8, 9, etc. |
richardaustin | Jan 31, 2011 | |
Printed | Page 5 4th line from the bottom to top |
return guitar; is missing after continue; |
Anonymous | |
Printed | Page 5 code section |
Second condition in if statement should be |
Ernie Bishop | Jan 30, 2010 |
Printed | Page 5 code sample |
The search method never returns anything when it finds a match. Even using enums and changing all strings to lower case won't help here. You'll need to add: |
Anonymous | Oct 26, 2010 |
Printed | Page 5 bottom of the page |
The search method always returns null. What's missing is a "return guitar;" at the end within the loop. |
kuku | Dec 15, 2010 |
Printed | Page 5 before close of search meathod |
"return guitar;" statment of the searsch method omited/left out. Code corrected on page 17, but never discussed as "beeing a problem within the code" in the text. |
Lyam Dolk | Jul 16, 2011 |
Printed | Page 6 end of second line of System.out.println in if block |
guitar.getBuilder() + " " + guitar.getModel() + " " |
Anonymous | |
Printed | Page 6 and 7 construction of whatErinLikes (on page 6) and inventory.addGuitar() on page 7 |
on page 6, we use the string "fender" |
Anonymous | |
Printed | Page 6 Codebox |
I talk about the german version of the book. In the code, the Fender guitar is a "Stratocastor" instead of a "Stratocaster". |
yetibrain | Nov 22, 2009 |
Printed | Page 7 code sample |
missing '+' at the end of line 13: |
Anonymous | Oct 26, 2010 |
Page 17 Middle of second code snippet |
Possible NullPointerException if searchGuitar.getModel() is null. The code: |
Carlos Bustamante | Sep 21, 2017 | |
Printed | Page 41 In "torn sheet" of "public Guitar(String..." |
The declaration of the class Guitar is the pre-GuitarSpec one: |
Anonymous | Mar 31, 2009 |
Printed | Page 45 matches method |
There should be getter methods for accessing the properties in the 'otherSpec' object. All method calls are made as if the properties were public. |
Anonymous | |
Printed | Page 49 If your target audience is only college level and up it may not be an issue for you). The use of the word "ass" on pages xxxiii and 49 would make me hesitate recommending the book to anyone teaching programming in high school classes. |
Anonymous | ||
Printed | Page 51 The clues for the crossword puzzle are blurry. It doesn't look like a printing issue to me but the choice of font. |
Anonymous | ||
PDF, ePub | Page 67 code example |
If a matching guitar is found, it should be returned, yet there is only a return statement if no match is found ("return nil"). |
Anonymous | Oct 25, 2014 |
Printed | Page 80 Second comment to the right, next to point 3 |
"(...) since them pushing the button isn't something that's you have to handle" |
Anonymous | Nov 02, 2009 |
Printed | Page 81 Right side of the req.list |
We've already got code to take care "of" this requirement |
TG | Mar 26, 2010 |
Printed | Page 82 2/3 of the way down |
If I am reading the code on page 82 correctly, the whole example of automatically closing the door is based on the assumption that in normal circumstances (the "main path"), a dog can go outside, do its business, and get back inside within FIVE SECONDS. The note on page 83 says that is "plenty of time to get back inside before the door closes." That is one fast dog! |
Anonymous | |
Printed | Page 88 Code Magnets, 2d paragraph |
"(...) there is a twist... all the magents for periods" |
Anonymous | Nov 02, 2009 |
Printed | Page 88-90 N/A |
On page 89, we see the first line of output from DogDoorSimulator.java is: |
Aaron Adams | Nov 22, 2009 |
Printed | Page 107 Crossword hint, 21 across |
|
Anonymous | Aug 18, 2008 |
Printed | Page 128 (answers: how many scenarios in the use case "Todd and Gina's...") |
path 1 and path 6 are identical. The correct answer should thus be that there are six different scenarios, not seven. |
Anonymous | |
Printed | Page 183 lower left |
Note says "... it's the SAME class diagram." |
Anonymous | |
Printed | Page 193 All |
The output does not match DogDoorSimulator.java. |
Anonymous | |
Printed | Page 196 bottom exercise solution |
The arrow from Attribute should point at "Equivalent to a member variable in a class." and the arrow from Operation should point to "This is the UML term that usually represents a method in one of your classes." |
Anonymous | |
Printed | Page 199 In the class diagram |
In the class diagram shown, class Inventory is associated to class Guitar and holding a reference to the Guitar class. The reference is named "inventory" in the class diagram by mistake (I suppose). It should have been named "guitar" |
Anonymous | |
Printed | Page 199 on the Guitar Class |
on the Guitar Class 'inventory *' -> 'guitars *' |
Anonymous | Oct 24, 2008 |
Printed | Page 205 1st paragraph |
"Whenever you find common behavior in two or more places, look to abstract that behavior into a class, and then reuse that behavior in the common classes" |
Anonymous | |
Printed | Page 208 top of the page, first sentence |
"We can start off be creating a new class..." |
Anonymous | May 24, 2010 |
Printed | Page 212 Last method - search() |
The line |
Anonymous | |
Printed | Page 212 search(MandolinSpec searchSpec) Method at the end of page |
public List search(MandolinSpec searchSpec) |
Anonymous | Oct 18, 2010 |
Printed | Page 328 pagenumber of page 11 (shown as snapshot) |
The page number shown is 11 but should be 13 according to my book. |
TG | Apr 12, 2010 |
Printed | Page 344 First full paragraph, starts with "Below is ..." |
|
Anonymous | Sep 04, 2008 |
Printed | Page 347 and 348 Code for Tile class on 348 |
The code for Board class on page 347 uses the following methods from Tile class: addUnit(Unit), removeUnit(Unit), removeUnits() and getUnits(). The code for Tile class on page 348 does not have removeUnits() and getUnits() methods! The note at the bottom on page 348 says 'we added only a few methods to Tile class', but without the above mentioned methods, the code on page 347 would not compile. |
Kapil | May 19, 2011 |
Printed | Page 389 First comment to the left |
The first comment to the left reads: |
Anonymous | Nov 13, 2009 |
Printed | Page 400 Top Title |
I have an early print of this book but didn't see this mentioned as being changed in the most recent printing. |
Anonymous | |
Printed | Page 476 last method in UnitGroup |
A call to getUnits() is going to die at runtime with a ClassCastException--the objects in the iterator aren't Units, they're Map.Entrys. |
Anonymous | |
519 in the code block, method "addStation" |
Method is like this: |
Fatih KUCUK | May 04, 2011 | |
Printed | Page 593 left column |
encapsulate what varies 115-116 |
Anonymous | Jun 15, 2012 |