Java: An Introduction to Problem Solving & Programming
(5th edition, ©2009)
by Walter Savitch and Frank M. Carrano
Errata List
Last updated on December 6, 2010.
The date after each error is the date it was posted on this list. Subsequent printings of the book will correct these errors.
If you find an error and it is not on this list, please e-mail a description of the error, the page number, and the tile/edition of the book.
Chapter 2
Page 81 (Jan. 25, 2009)
In the last sentence on this page, change "inside the cover" to "in the appendix"
Page 89 (Jan. 25, 2009)
In the sentence just before the last paragraph, change "is the answer" to " is the answer" as the value of s1 (that is, insert a space between the first quote and is).
Chapter 3
Page 137 (Jan. 25, 2009)
In the last sentence of the next-to-last paragraph, change "inside the cover" to "in the appendix"
Page 161 (Jan. 25, 2009)
In the last sentence of the next-to-last paragraph, change grade to rating
Chapter 7
Page 479 (Dec. 6, 2010)
Near the bottom of the page, the Java statement that defines temp is missing a pair of square brackets. It should be
double[] temp = new double[nextScore.length];
Page 505 (Dec. 6, 2010)
In the RECAP at the top of the page, the return type of the method getOneElement should be char instead of int.
Chapter 8
Page 545 (Dec. 6, 2010)
At the top of the page, delete the keyword static from the headers of the two methods convertToInches and convertToFeet. An interface cannot declare static methods.
Page 611 (Dec. 6, 2010)
In the answer to Self-Test Question 14, the alternate definition of the default constructor has an incorrect body. Replace
this("no title yet");
with
this("no name yet", "no title yet");
Chapter 9
Page 658 (July29, 2010)
In the second to the last println statement within the main method, change clerk.resultValue() to clerk.getResult()
Chapter 10
Page 701 (Aug. 19, 2008)
In the 2nd definition of inputStream, delete the blank after hw1. It should read, as follows:
Scanner InputStream = new Scanner(
new File("D:\\homework\\hw1\\data.txt"));
Page 703 (July29, 2010)
The sentence “you designate …” below Figure 10.4 should not be indented.
Page 737 (July29, 2010)
Delete the second line in the method removeFile. The local variable firstLine is never used.
Chapter 12
Page 818 (July29, 2010)
In the 2nd line of the 4th paragraph under “A Privacy Leak”, delete the word “the” in the sentence “This is the because …”
Page 829 (July29, 2010)
In 3rd line below Figure 12.5, replace the method insertAfterIterator with insertNodeAfterCurrent.
Page 830 (July29, 2010)
In the caption for Figure 12.6, replace the method insertAfterIterator with insertNodeAfterCurrent.
(End of errata)