Errata
Submit your own errata for this product.
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question
| Version | Location | Description | Submitted By | Corrected |
|---|---|---|---|---|
| Printed | Page viii 2nd paragraph, line 7 |
... that encourage woman to ... |
Anonymous | |
| Printed | Page viii 4th paragraph |
"trying to restoring" |
Anonymous | |
| Printed | Page ix 3rd paragraph |
runing |
Anonymous | |
| Printed | Page xxxi Fourth through ninth numbered Item |
Items are numbered 1,2,3,5,..,10 |
Anonymous | |
| Printed | Page xxxv 2nd Paragraph |
A space is missing between the word 'their' and the following opening parenthesis. |
Anonymous | |
| Printed | Page 5 Box for RubberDuck |
The string ".//" should be "//" |
Anonymous | |
| Printed | Page 9 beneath the box containing the Design Principle |
thruoghout |
Anonymous | |
| Printed | Page 12 last line |
Should be a.makeSound(); |
Anonymous | |
| Printed | Page 13 Box for Quack class |
quack) |
Anonymous | |
| Printed | Page 13 Diagram - annotation below FlyNoWay box |
"And here's the implementation of all ducks that can't fly." |
Anonymous | |
| Printed | Page 14 Second sentence in the second answer iin the Q&A on page 14 should |
be changed to read: |
Anonymous | |
| Printed | Page 19 description of step 3, 3rd line |
... and Sqeak.java ... |
Anonymous | |
| Printed | Page 21 Code |
The code is improperly indented, starting with the fourth line. |
Anonymous | |
| Printed | Page 21 step 5, console, last line |
I'm flying with a rocket |
Anonymous | |
| Printed | Page 23 Master and Student dialogue |
Master's second-to-last remark includes "maintaintability" |
Anonymous | |
| Printed | Page 32 Middle of page, "OO Principles" box, 2nd sentence |
"Favor composition over inheritence" |
Anonymous | |
| Printed | Page 33 Crossword puzzle |
There were several errors in the crossword puzzle. A corrected version can be found here - |
Anonymous | |
| Printed | Page 35 Sharpen Your Pencil Solution |
There are two "C" boxes. The boxes should be A, B, C, D, E, F instead of A, B, C, C, D, E. |
Anonymous | |
| Printed | Page 41 Second bullet |
The closing parenthesis is missing. |
Anonymous | |
| Printed | Page 52 Q&A section at bottom |
Minor layout booboo: missing "There are no Dumb Questions" heading |
Anonymous | |
| Printed | Page 56 UML |
"CurrentConditions" should be "CurrentConditionsDisplay" (as it is in the code on p. 60). |
Anonymous | |
| Printed | Page 64 UML |
On page 64, the "subject" arrow from GeneralDisplay should point to Observable rather |
Anonymous | |
| Printed | Page 65 last paragraph |
notifyObserver(arg) |
Anonymous | |
| Printed | Page 78 In the Code Magnets solution, the line - |
Weatherdata weatherData = (WeatherData)observable; |
Anonymous | |
| Printed | Page 87 3rd answer, near middle of paragraph |
would probably be wastefu). Following |
Anonymous | |
| Printed | Page 87 last A, first sentence |
remove extra "the" before "knowing the domain" |
Anonymous | |
| Printed | Page 91 The two ConcreteDecorators |
ConcereteDecoratorA and ConcereteDecoratorB |
Anonymous | |
| Printed | Page 91 bottom left bullet text |
"The ConcreteDecorator has an instance variable for the thing it decorate.. |
Anonymous | |
| Printed | Page 94 in the first paragraph, |
the word |
Anonymous | |
| Printed | Page 96 Third annotation down on Espresso, second sentence |
"Now that we don't need to worry about ..." |
Anonymous | |
| Printed | Page 96 Annotation at the bottom of the page |
"You can create the other three Beverage classes (DarkRoast, Decaf, Esperesso) |
Anonymous | |
| Printed | Page 98 Starred annotation under the code |
We're going to see a much better way of creating decorated objects when we cover the |
Anonymous | |
| Printed | Page 99 Question 1 |
"specfic" |
Anonymous | |
| Printed | Page 99 second Q paragraph |
|
Anonymous | |
| Printed | Page 99 Last Question |
The second sentence says "Say, I wanted my getDecription..." |
Anonymous | |
| Printed | Page 99 Last Answer |
The last sentence says "Note that getDecription..." |
Anonymous | |
| Printed | Page 106 1st box |
public float cost(){ |
Anonymous | |
| Printed | Page 106 in the bottom solution box at the very top |
"double mocha soy lotte with whip" |
Anonymous | |
| Printed | Page 107 getSize method of Soy class |
public getSize() { |
Anonymous | |
| Printed | Page 109 last line |
embarrasing -> embarrassing |
Anonymous | |
| Printed | Page 113 last line in highlighted block of code. |
pizza = new eggiePizza(); |
Anonymous | |
| Printed | Page 114 last 3rd line in last paragraph |
a client of that object. Any time it needs a pizzam it asks |
Anonymous | |
| Printed | Page 115 bottom right, answer to last question |
"But remember it also has the disadvanage..." |
Anonymous | |
| Printed | Page 117 Bottom "Just another reminder:.." Second line; |
"write a class the implements ... |
Anonymous | |
| Printed | Page 119 third line in the two listings |
line 3: There should be "nyStore.orderPizza" instead of "nyStore.order" |
Anonymous | |
| Printed | Page 120 last line in code example |
abstract createPizza(String type); |
Anonymous | |
| Printed | Page 121 Second paragraph |
Erroneous space after first "thick". |
Anonymous | |
| Printed | Page 130 black output window at the bottom |
"Grated Regiano cheese" |
Anonymous | |
| Printed | Page 134 Last paragraph |
The last sentence should start with |
Anonymous | |
| Printed | Page 144 Last paragraph |
"different set that needs to shipped..." |
Anonymous | |
| Printed | Page 145 in the California group; |
the seafood should be "Calamari", not "Camari" |
Anonymous | |
| Printed | Page 148 UML drawing of classes at the bottom of the page |
"Mozzarella" class name should be "MozzarellaCheese" (to match p. 145) |
Anonymous | |
| Printed | Page 150 & 151 last method |
Wrong way double-quotes |
Anonymous | |
| Printed | Page 159 2nd paragraph, right column (Abstract Factory) |
"...because I am used to create entire families..." |
Anonymous | |
| Printed | Page 160 text floating in bottom-middle of diagram |
"Subclasses are instaniated |
Anonymous | |
| Printed | Page 162 Abstract Factory Card |
depedent |
Anonymous | |
| Printed | Page 173 floating "a" inside "Watch it" box on the top right of the page |
"you'll see a |
Anonymous | |
| Printed | Page 175 fill method |
"fill" is rendered improperly (with a hard-to-read font) |
Anonymous | |
| Printed | Page 179 "Bet the JVM" code example |
code example; |
Anonymous | |
| Printed | Page 207 in the text pointing to the Command interface, |
the word should be "perform", not "preform" |
Anonymous | |
| Printed | Page 208 Second paragraph, Sue's statement |
Sue's last sentence ends with a colon, but no example follows it. |
Anonymous | |
| Printed | Page 209 swapped letters "ie" in "reciever", bottom right of the page |
"(3) In the execute() method actions |
Anonymous | |
| Printed | Page 212 first paragraph |
"Home Automation of Bust" should be "Home Automation or Bust" |
Anonymous | |
| Printed | Page 216 In the thought bubble |
Printed: Note from the Author or Editor: |
B Hillebrecht | |
| Printed | Page 223 RemoteLoader output window |
The output in the window on page 223 does not match the code on page 222. |
Anonymous | |
| Printed | Page 230 1st bullet point |
"The Command Pattern decouples an object, making |
Anonymous | |
| Printed | Page 230 5th bullet point |
"excute()" should be "execute()" |
Anonymous | |
| Printed | Page 233 undo() definition of top exercise |
The boxed text reads: |
Anonymous | |
| Printed | Page 240 Test run at the bottom |
Replace RemoteControlTest with DuckTestDrive and remove newlines that are not in the |
Anonymous | |
| Printed | Page 245 first paragraph |
")." should be ".)" |
Anonymous | |
| Printed | Page 278 Top of page, annotation next to prepareRecipe(), 2nd sentence |
"the second and forth steps are different, ..." |
Anonymous | |
| Printed | Page 292 first "handwritten" comment |
"a condiments" should be "condiments" |
Anonymous | |
| Printed | Page 295 bottom right of page, last paragraph |
"so you can implement these as hooks rather than abstract classes," |
Anonymous | |
| Printed | Page 298 third description in Who Does What? box |
"Subclasses decide which concrete classes to create." |
Anonymous | |
| Printed | Page 300 first "handwritten" comment |
"paired" should be "pared" |
Anonymous | |
| Printed | Page 308 first "Template Method" paragraph |
Missing terminating period |
Anonymous | |
| Printed | Page 321 bullet item #1 |
"...you'll need to call the getMenuItem() method ..." |
Anonymous | |
| Printed | Page 321 second code excerpt |
Improper facing closing double-quotes |
Anonymous | |
| Printed | Page 322 Sharpen your pencil box |
Items are lettered A, B, C, C, D, E. Should be A, B, C, D, E, F. |
Anonymous | |
| Printed | Page 332 last line, first column |
you'llwant |
Anonymous | |
| Printed | Page 338 3rd Question |
"Could I implement an Iterator that can go backwards as well as backwards?" |
Anonymous | |
| Printed | Page 350, 382 6th magnet |
The code |
Anonymous | |
| Printed | Page 354 1st paragrah |
second to the last line of paragraph: |
Anonymous | |
| Printed | Page 365 Description for Apple Pie on the desertMenu definition |
"icecream" should be "ice cream" |
Anonymous | |
| Printed | Page 365 Second hand-written comment from the top |
Text states: |
Anonymous | |
| Printed | Page 374 Description for Apple Pie on the menu printout (in two places) |
"icecream" should be "ice cream" |
Anonymous | |
| Printed | Page 378 11 down: |
Hashtable and ArrayList both implement this interface. |
Anonymous | |
| Printed | Page 379 Who Does What? |
Replace the text "State Pattern" at the top left of the diagram with "Strategy Pattern", |
Anonymous | |
| Printed | Page 381 Sharpen your pencil solution box |
Items are lettered A, B, C, C, D, E. Should be A, B, C, D, E, F. |
Anonymous | |
| Printed | Page 392 first sentence |
A comma is missing after "methodology". |
Anonymous | |
| Printed | Page 396 Sharpen your pencil box |
Items are lettered A, B, C, C, D, E. Should be A, B, C, D, E, F. |
Anonymous | |
| Printed | Page 397 repeated "this" in second to last sentence by Joe |
"I wonder if this will this make it easier to add new states?" |
Anonymous | |
| Printed | Page 425 Sharpen your pencil box |
Items are lettered A, B, C, C, D, E. Should be A, B, C, D, E, F. |
Anonymous | |
| Printed | Page 428 Top (Who does What) |
The solutions for Template Method and Strategy are wrong; |
Anonymous | |
| Printed | Page 431 code |
Improper facing double-quotes |
Anonymous | |
| Printed | Page 445 Last "hand-written" note on bottom of page |
The word "rmiregistery" should be "rmiregistry". |
Anonymous | |
| Printed | Page 446 Code Up Close, 1st "callout" |
Book says: |
Anonymous | |
| Printed | Page 455 GumballMonitorTestDrive code |
As written, the GumballMonitorTestDrive will fail with a NullPointerException if a GumballMachineRemote fails to initialize. Note from the Author or Editor: |
Anonymous | |
| Printed | Page 456 Code execution windows at the bottom of the page |
java GumballMachine santafe.mightgumball.com 100 |
Anonymous | |
| Printed | Page 457 Code execution window |
java GumballMonitor |
Anonymous | |
| Printed | Page 507 System.out.println() line in code |
The message text in the System.out.println() statement does not match the output in the window below. |
Anonymous | |
| Printed | Page 521 Step 18 |
Second sentence should read "Let's update the simulator and give it a try:" not "...give it try:" |
Anonymous | |
| Printed | Page 526 bottom paragraph, first column |
"applications" should be "application's" |
Anonymous | |
| Printed | Page 527 second to last stanza in left column |
"repititious" should be "repetitious" |
Anonymous | |
| Printed | Page 557 1st paragraph, 2nd to last sentence |
minor typo: |
Anonymous | |
| Printed | Page 591 bottom right answer on the page |
remove the sentence: |
Anonymous | |
| Printed | Page 620 repetition production |
Improper facing single quote to the right of the left parenthesis. |
Anonymous |
