Errata List for
Java: A Framework for Programming and Problem Solving
Below are the errors that have been discovered thus far in the first three printings. Please report any additional errors to klambert@wlu.edu.
| Page ix | "BreexyGUI" should be "BreezyGUI" |
| Page 7 | Figure 1-3, remove head of arrow pointing down into box labeled "maintenance". |
| Page 16 | Code segment, items referred to in blue italic are in italic, but are not in blue. They should also be in blue. |
| Page 26 | Last line of first code segment, "show()" should be "setVisible(true)". |
| Page 40 | Table 3.1, entry for 5 should be 101, not 100. |
| Page 47 | Below Tester Programs, "import BreezyGui.*" should be "import BreezyGUI.*" |
| Page 50 | The last three bullets should align with the earlier bullets |
| Page 53 | 5th line of second paragraph: "5 plus 6 "should be "5 plus 6 is " |
| Page 53 | 2nd line from bottom of second code segment: "5 plus 6 is 5 + 6" should be "5 plus 6 is 56" |
| Page 54 | 2nd line from top of page: "extend GBFrame" should be "extends GBFrame" |
| Page 75 | 3rd code segment, "(average >= 70" should be "(average >= 70)" |
| Page 78 | Code segment at top of page: insert line "expo = expo + 1;" after line "output.append (data + "\n");" |
| Page 79 | Code segment in middle of page: insert line "expo = expo + 1;" after line "output.append (Format.justify ('r', data, 4) + "\n");" |
| Page 81 | 2nd line from bottom, need space after "rules." |
| Page 98 | Middle of page: "processScores" should be "processScore" |
| Page 101 | 2nd line from bottom of page: "score field" should be "scoreField" |
| Page 106 | Paragraph 1, line 6, "be so is to" should be "be to" |
| Page 111 | Problem 3, line below table, "up to $10,000" should be "over $5,000 up to $10,000" |
| Page 111 | Problem 5, "-b+" in equation should be "-b± ". |
| Page 121 | In the first programming example the indentation of the last two lines of code is reversed. |
| Page 131 | Paragraph 1, line 2, missing a space between "users." and "Cryptography" |
| Page 141 | Row 3, column 4 entry "walk" in table should be "run" |
| Page 141 | Row 4, column 3 entry "run" in table should be deleted |
| Page 151 | Numbered point 2 - "b - a < 1e-10" should be "b - a > 1e-10" |
| Page 163 | In code segment, "(<parameter list){" should be "(<parameter list>){" |
| Page 183 | 3rd line from top of page: "s1 and s1" should be "s1 and s2" |
| Page 199 | Code segment at top, replace "searchAge" with "correspondingAge" |
| Page 206 | Paragraph below top code segment, replace "method rowSum" with "method sumRows" |
| Page 213 | Halfway down the page, "ListltHobbies" should be "List ltHobbies" |
| Page 216 | "coef[4] = 4" should be "coef[4] = 6" |
| Page 255 | "Shapes[]" should be "Shape[]" (two instances) |
| Page 261 | Second code segment, line 5, "hoursWorked" should be "unitsWorked" |
| Page 276 | "fibonacci(2) = 2" should be "fibonacci(2) = 1" |
| Page 276 | "fibonacci(N-1) if N > 2" should be "fibonacci(N-2) if N > 2" |
| Page 287 | Second line of code from bottom of page, ">" should be "<" |
| Page 301 | Row 1, column 2 of table: screen shot of window covers "g.drawPolygon(x, y, 5)" |
| Page 326 | Table 12.3, column 1, beginning of lines 6, 7, 8, "int" should be "void" |
| Page 328 | Second line, "pressed the mouse button in of a circle" should be "pressed the mouse button in a circle" |
| Page 329 | Middle of page, "i > = q " should be "i >= 0 |
| Page 333 | Middle of page, first bullet: "to the left" should be "to the right" |
| Page 362 | Fourth line of code at top of page, filename\n" + "Directory: should be filename + "\nDirectory: |
| Page 387 | Second line of code, "AddTextField" should be "addTextField" |
| Page 441 | "<PARAM NAME=numberOfClasses" should be "<PARAM NAME =numberOfCourses" |
| Page 477 | For Event Class - Input Event, Event Methods - consume (), Line 4 - "field, on could" should be "field, one could" |
| Page 483 | Third line of code, "FirstDialogkTester" should be "FirstDialogTester" |
| Page 483 | 7th line of code, "FirstDialogkTester" should be "FirstDialogTester" |
| Page 483 | 14th line of code, "FlirstDilalog" should be "FirstDialog" |
| Page 401 | Sixth line from the bottom of the page, "data = current;" should be "data = current.data;" |
| Page 491 | Code box 1, Line 4 - ";;" should be ";" |
| Page 499 | Fifth line from bottom, beginning with ">>=", column 2 entry should read "Shift right, sign extension, and assign" |
| Page 499 | Fourth line from bottom, beginning with ">>>=", column 2 entry should read "Shift right, no sign extension, and assign" |
| Page 520 | Entry for "protected variable" should read "A variable that is accessible only within the scope of a class definition, within the class definition of a subclass, or within the class's package." |
| Page 531 | Column 1, line 5, "instanceOf" should be "instanceof" |
Many thanks to Adrian German of Indiana University, Bloomington, for spotting several of these errors.