We wish to thank our many readers who took the time to email us with errata. If you find errata not listed on this page, please email us at firstname.lastname@example.org. Remember to include the book title and edition.
Note: You can determine which printing you have by looking at the bottom of the back of the second physical page in the book (page iv, but it has no page number). Just above the ISBN number is a list of numbers. For the first printing of the book, the list appears as follows:
10 9 8 7 6 5 4 3 2 1
The last number in the list is the printing number. So the above list indicates printing 1 and the following list indicates printing 2:
10 9 8 7 6 5 4 3 2
- p55, Fig. 2.13: the arrow pointing from the result of step 3 into step 4 should point to the value 15 not the value 50. Download the corrected page.
- Page 151, Fig. 4.12, Line 7: Missing left and right parentheses ( ) at end of line
- Figs. 4.19 and 4.20 are missing example code from the CD. Download the missing example code.
- The version of class GradeBook printed on p. 194 will not compile. Line 69 incorrectly lists numericGrade as the name of the parameter of method incrementLetterGradeCounter, but the method body uses a variable named grade. The example file on the CD that accompanies the book, however, has the correct parameter name—grade—so the included file should compile. Changing either the parameter name to grade (as it is on the CD), or changing line 72 to use numericGrade will fix the problem.