Introduction to Programming Using Java
Errata for Version 4.0
The following corrections were made to Version 4.0 of this textbook and have been incorprated into this version, Version 4.1:
- April 17, 2004: A reader has noted several errors in Chapter 12. In Section 12.2 (file c12/s2.html), three occurrences of the word "ListArray" should be changed to ArrayList. In the solution to Exercise 12.4 (file c12/ex-12-4-answer.html, lines 204-205, the definition of the function test() should be: "public boolean test(Object obj) { return ((Integer)obj).intValue() > 100;}", with "boolean" replacing "void" and "intValue" replacing "integerValue." And in Section 12.4 (file c12/s4.html, line 194, "summerize" should be replaced by "summarize."
- January 22, 2004: Chapter 3 Quiz (file c3/quiz.html). The line that reads "startword = true;" should be changed to "startWord = true;", with an upper-case W. Otherwise, the code will not even compile because the variable startword is undeclared.
- November 2, 2003. Chapter 1, Section 5 (file c1/s5.html, line 44). The word "is" in "is makes it difficult to reuse..." should be replaced by "it".
- November 14, 2003. Chapter 6, Section 4 (file c6/s4.html, line 523), "drasingSurface" should be "drawingSurface".
- September 24, 2003. Quiz answers for Chapter 3 (file c3/quiz-answers.html, lines 4 and 10). The title and headline both said "Chapter 1." This has been changed to "Chapter 3."
- August 26, 2003. Chapter 10, Section 4 (file c10/s4.html, line 510), add a missing right brace before "// end main()" giving "} // end main()".
- August 16, 2003. Chapter 4, Section 4 (file c4/s4.html, line 259) add a missing right parenthesis in "if (word.equals(reverse(word)))". Chapter 4, Section 5 (file c4/s5.html, lines 206-207) remove a redundant "is to" from "one solution is to is to". Chapter 4, Section 7 (file c4/s7.html, line 43) add a missing "e" in "therefore".
- August 4, 2003. In Chapter 3, Section 7 (file c3/s7.html, line 118), changed "is a an example non-static" to "is an example of a non-static".
- June 24, 2003. In Chapter 3, Section 4 (file c3/s4.html, line 223), changed "for ( char ch = 'A';" to "for ( ch = 'A';". (The variable ch is declared on the previous line, and declaration of variables in for loops has not yet been introduced at this point in the book.) Also, in Chapter 2, Section 3, changed the word "method" to "function" in lines 345 and 354.
- May 5, 2003. In Chapter 4, Section 1 (file c4/s1.html, line 49), changed "without understand" to "without understanding".
- March 6, 2003. Fixed an error in Chapter 3, Section 3 (file c3/c3.html, line 276). In the line that originally read "When the value of the boolean variable is set to true", "true" was replaced by "false"
- September 5, 2002. A programming error has been found in the file TextIO.java, in the source directory. In the definition of the function readInteger(), the semicolon at the end of line 333, "if (ch =='\n');" should be removed.
- August 12, 2002. In Chapter 2, Section 5, "(short)100000 is 34464" should read "(short)100000 is -31072".
- August 2, 2002. Some proofreading errors in Chapters 1 and 2, noted by Gary Schnabl. Section 1.2: "unpredicatalble" and "alloted" should be changed to "unpredictable" and "alotted". Section 2.2: "not that he wants to be George Bush" should be "not that she wants to be George Bush". Section 2.3: "the actually the" should be "actually the". Solution to Programming Exercise 2.1: "cut-and-paste" should really be "copy-and-paste" in two locations. Solution to Programming Exercise 2.4: "nickle" should be replaced by "nickel" in several places. Also, I added a note about NetBeans, an open source, pure java IDE, to Appendix 2.
[ Main Index ]