First Printing Errata (July 7, 2006)
Last Updated: 2/3/07In the Primitive Data Types box, char 2 bits should be char 16 bits
In the Multidimensional Array section, int[] list should be int[][] list.
Page vi: line -13, JOpationPane should be JOptionPane.
Page 43: line -13, change to t to to c.
Page 35: In figure in the middle of the page, change divident to dividend.
Page 54: Delete last line in Figure 2.8(a) and (b), respectively.
Page 69: Table 3.6, (5 > 5) should be (5 > 1).
Page 70: line 1 in Listing 3.1 should be import javax.swing.JOptionPane
Page 83: In the diagram before the Tip, change the first ch is 'c' to ch is 'a'.
Page 94: Exercise 3.7, Listing 2.4 should be Listing 2.7.
(No errors found yet)
Page 143: line 3, ex should be ex
Page 143: line 9, xb should be xb
Page 143: line 11, replace a with x
Page 164: in Exercise 5.8, 105.0 should be 104.0 and 5.44 should be 4.44
Page 164: in Exercise 5.9, 195.721 should be 196.721
Page 166: in Exercise 5.18, 5.2426 should be 4.2426 and 5.4721 should be 4.4721
Page 173: line 3, change 99.0 to 100.0.
Page 174: lines 6 and 7 in Listing 6.1, TOTAL NUMBERS should be TOTAL_NUMBERS.
Page 182: in Figure 6.8, change counts[25] to counts[24], and count[26] to counts[25].
Page 184: in line -15, change delete counts[ in if (counts[
Page 184: line -12 and -14, change count[0] to counts[0], and count[1] to counts[1].
Page 208: Exercise 6.26, delete All 0's on row 0.
Page 222: line -8, Change Listing 2.5 to Listing 2.8.
Page 229: first line in Section 7.8, Change Listing 7.2 to Listing 7.3.
Page 242: line 9 in the code, this(7.5, 30, 100000); should be this(2.5, 1, 1000);
Page 258: Exercise 7.9, change the last bullet item to "A static method parseInt(char[]) that converts an array of numeric characters to an int value."
Page 263: in lines -13, 14 Figure 8.1, subString should be substring.
Page 282: last line in Example 4, delete \\.
Page 297: Exercise 8.7, change 4129 to 4010.
Page 426: Figure 13.2, (x2, y3) should be (x2, y2).
Page 442: line 4 and line 7, after the code listing, "When centered is true" should be "Since the message is centered".
Page 476: Listing 14.6 TestWindowEvent.java should be Listing 14.6 AdapterDemo.java.
Page 478: remove getContentPane(). in lines 11 and 12 in Listing 14.7. (This is not an error, but should be removed to be consistent with the coding style in the book.)
Page 561: lines 37-38, remove getContentPane(). (This is not an error, but should be removed to be consistent with the coding style in the book.)
Page 537: delete the line from Initialized to Stopped in Figure 16.1(b).
Page 566: in the box (b) at the top of the page, remove getContentPane(). (This is not an error, but should be removed to be consistent with the coding style in the book.)
Page 612: in the UML diagram, change <<interface>>java.io.DataInput to <<interface>>java.io.DataOutput.
Page 642: line 6 in Listing 19.5, change high > 1 to high > 0.
Page 698: in line 7 in Listing 21.2, change Integer to String.
Page 699: in line 4 in Listing 21.3, change Circle9 to Circle.
Page 750: line 6 in Listing 23.3, k < list.length should be k < list.length && needNextPass
Page 751: three lines after Listing 23.4, change 1 9 to 2 9 in two places.
Page 779: line -10, print100.setPriority(Thread.MAX_PRIORITY); should be changed to thread3.setPriority(Thread.MAX_PRIORITY);
Page 779: line -9, change "print100 thread" to "thread for the print100 task".
Page 825: line 52, should be new Thread(task).start()
Page 834: line -5, the URL should be http:/www.cs.armstrong.edu/liang/index.html.
Page 918: Figure 28.1, JVenuBar should be JMenuBar.
Page 923: line 16, change 9 to 6.
Page 1097: line -5, delete "or equal to"
Page 1103: line 12, "v < v1 and v > v2" should be "v < v1 or v > v2"
Page
1142:
line 235 in Listing 33.4, to enable this program to work with Oracle, change line 235 as follows:
"select " + tableName + ".* from " + tableName + ";"
For some reason, the result set becomes read-only for “select * from Course;”, but works fine if you change it to
select “Course.* from Course;”
Credits: Sandi Snyder (Ozarks Technical Community College), Larry Phillmon, Brian Eddy (Armstrong Atlantic State University), James Chegwidden (Tarrant County College), Danijel Abramović (Siemens), Claudio Valderrama C. (SW developer, consultant), Bryan Cool (University of Missouri, St. Louis), Derek Snow (University of South Alabama), Andreas Jordan (Australia), John Logan (San José State University), Brad Shank (Indiana Tech), Jeremy Barksdale (NC A&T State University), Ralph Kelsey (Ohio University), John Towell (Carroll College).
Please send errata to liang@armstrong.edu. Thanks for helping improve the book!

