Please send errata to liang@armstrong.edu. Thanks for helping improve the book!
Page 35, Line -2, 3 + 4 * x should be 34 * x.
Page 42, Line 4, Remove the space between \ and " (Thanks to Stephenie Labovitz of Michigan State University 1/21/04).
Page 222, Figure 6.11, "Pass by reference" should be "Pass by value."
Page 255, Last line, change s1 to s. (Thanks to Alex Letichevsky of UT Dallas. 1/14/03)
Page 295, Delete the first sentence after the source code, "The data field radius is protected, so it can be referenced by any subclass of Circle." (Thanks to Bill Horst of Sun Microsystems for the correction. 10/20/02)
Page 297, Add the following NOTE before Section 8.8.
NOTE: You can jump to Chapter 10 and read before Section 10.11, "Event-Driven Programming," and then resume Section 8.8.
Page 365, replace Lines 44-48 by the following lines: (Thanks to Don Costello of U. of Nebraska for the correction. 2/21/03)
/** Add an element at the specified index.
* Note: add(element, 0) is same as addFirst(element)
*/
public void add(Object element, int index) {
if (index == 0) addFirst(element);
Click here to download the complete source code for GenericLinkedList.java.
The output in Figure 9.19 should be Daniel John Tom Michelle George Michael Samantha
Page 579, Before Example 12.11, delete "The fill and anchor parameters are class variables, whereas gridx, gridy, gridwidth, gridheight, weightx, and weighty are instance variables." (10/28/02)