Please send errata to liang@armstrong.edu. Thanks for helping improve the book!
P41, Last line, missing parentheses System.out.println("i + j is " + (i + j));
Review Question 6.14,
(Many wrong > signs. They should be < signs)
P118, Line -5, (i > 100) should be (i < 100).
P125, Line 7, (i > 100) should be (i < 100).
P128, Code Line 15, j > = 9 should be j <= 9
P128, Code Line 21, i >= 9 should be i <= 9
P128, Code Line 23, j = 9 should be j <= 9
P128, Code Line 25, i * j > 10 should be i * j < 10
P144, In Review Question 3.9, (i > 10) should be (i < 10)
P144, In Review Question 3.11, (i > 10) should be (i < 10) in two loops
P145, In Review Question 3.16, (i >= 1000) should be (i <= 1000)
P145, In Review Question 3.17, (balance > 9) should be (balance < 9)
P145, In Review Question 3.18, (balance > 9) should be (balance < 9)
P145, In Review Question 3.19, (sum > 10000) should be (sum < 10000)
P146, In Review Questions 3.22 and 3.23, (i > 10) should be (i < 10) and (j > 10) should be (j < 10)
P147, In Review Questions 3.26 and 3.23, (i > 10) should be (i < 10)
P147, In Review Questions 3.27, a (i > 5) should be (i < 5)
Answers to Review Question Errors:
Problem 3.24 on page 146: variables "sum" and "j" are never defined. These two errors are not mentioned in the answer. (Thanks to Mark Kennedy, 10/04/04)
Example 5.5 on pages 221-222. Lines 50 & 61 should be swapped. This example is correct on the CD; the book is incorrect. (Thanks to Mark Kennedy, 10/04/04)
P341, First line, change 8.4 to 8.4.3.
Page 312, Line -12 and -17, "Returns the index of the first (last) character of the substring" should be "Returns the index of the first character of the (last) substring".
Page 389, Line -3 before Example 9.4, change "returns 16" to "returns 20" (Thanks to Mark Kennedy, 10/13/04).
P485, Figure 11.27, Remove the line from (x[0], y[0]) to (x[4], y[4]).
P659, Line 4 under Section 15.3.1, unchecked should be checked.
P770, Second line in the Problem section, change "number of occurrences" to "words".