Known Errors
in

Book Cover

The text is now in its fourth printing and no new errors have been found in the past two years.
You can determine the version that you have by looking at the bottom of page ii.
The fourth printing contains the numerals 5 4.
The third printing contains the numerals 5 4 3.
The second printing contains the numerals 5 4 3 2.
The first printing does not contain any sequence of numerals.

Errors that Appear in All Printings.

None so far

Errors that Appear in only the First, Second, and Third Printing

Page 33
In the fourth line, change "primitve" to "primitive"
Page 143
In the last line of Example 2, the expression x*x*x - 3 should be enclosed in parentheses

Errors that Appear in only the First and Second Printings

Page 40
Seven lines from the top: change ". - " to " - "

Page 79
In Example 10, change In.getInt() to In.getDouble()

Page 144
In Question 3(a), delete the second (or third) plus sign

Page 191
In the diagram, change double n to double a

Page 392
In Question 4, Mars has been omitted from the list of planets

Page 401
In the second line of Example 2, change 30 to 29

Page 419
In Question 3, change 9.2 to 10.2

Page 453
In line 5, replace west by north. In line 10, interchange north and west.

Page 471
In Question 12, replace "numbers" in the first line by "integers"

Page 587
In Example 1, replace Buffered Reader by BufferedReader

Page 588
In Example 2, replace Buffered Reader by BufferedReader

Page 664
All answers to Exercise 9.5, Question 3 are missing. They should be: (a) $2 (b) 86 (c) 38 (d) $2 (e) $2 (f) 86.00

Page 667
In answers to Exercise 11.3, Question 2, replace 3.125 by 3.25 and replace 3.5625 by 3.625

Errors that Appear in only the First Printing

Page 33
Three lines from the bottom: "varable" should be "variable"

Page 144
In Question 4, replace "Suppose that large" by "Suppose that a large"

Page 150
The last line of the page lacks a terminating semi-colon

Page 153
The variable n should be declared before the do. Insert int n; on the line before do and delete int before n = In.getInt();

Page 248
In the fourth line of the page, change Stdin to In

Page 250
In Question 5 of Exercises 6.7, repeated references are made to the field price of Example 1. The field is actually called gasPrice.

Page 312
In the first line of Question 5, replace "ten" by "eight"

Page 327
The first declaration near the top of the page should be: String[] name = new String[STUDY_SIZE];
In the second line of the following paragraph, replace "three" by "four"

Page 329
In Question 1 of Exercises 8.4, add the following sentence:
"You may assume the existence of a constructor with the header public Complex (double re, double im)."

Page 334
The first line on the page should be public void push (Object o)

Page 423
In the ninth line, replace "descrition" by "description"

Page 430
Change Question 1 (f) to 1.1, 1.2, 1.3, 1.4,...

Page 437
Question 3 should be deleted; it referred to an early draft of Example 1, not the current version

Page 452
In the sixth line of the method findExitFrom, change [row,col] to [row][col]

Page 471
In the second last line, replace "the number of" by "all the"

Page 480
In the second line on the page, replace "contans" by "contains"

Page 523
In the second last line, replace "oj" by "of"

Page 634
In Example 2, delete <tt> and </tt> surrounding surname and initial.

Page 650
The first line of the answer to Exercises 1.6, Question 3 (a) should be int quantity, size;

Page 654
In answers to Exercises 2.6, Question 4 (c), (e), and (f), replace ((int) by (int)

Page 660
In answers to Exercises 6.7, the answers shown for Question 5 are actually the answers to Question 6

Page 665
In answers to Exercises 10.4, the answer shown for Question 3 (a) is actually the answer to Question 4 (a).
The answer to Question 3 (a) is: Place a test in the code to swap values only if top != largeLoc
The answer to Question 3 (b) is: The test would probably waste more time than it saved since values would usually be unequal

Page 666
In answers to Exercises 10.5, the answer shown for Question 4 is actually the answer to Question 3

Page 668
In answers to Exercises 11.7, delete the answer to Question 2 and re-label the following answers as 2, 3, and 4

New Errors

If you find anything questionable, please inform me by sending a note to jcarter@ecf.utoronto.ca
Thanks.

Last updated on July 25th, 2008