Errata in the ProgramLive
Companion (Edition 1, July 2001)
Chapter 0. The Companion
Chapter 1. Intro to Java
Page 4, line -10. Delete the reference to Visual Cafe and indicate that
the lesson for CodeWarrior is lesson 18, not 19.
Page 15, line 11. Delete the reference to Visual Cafe and change the reference
for CodeWarrior to lesson 18.
Chapter 2. Methods and method calls
Chapter 3. Classes
Chapter 4. Subclasses and inheritance
Chapter 5. Some useful classes
Chapter 6. Primitive types
Chapter 7. Iteration
Chapter 8. Arrays
Page 128, activity 7-1-2, Question 9. Change the quote marks on this page
to a more appropriate font, which has the same character for starting and
Chapter 9. Multidimensional arrays
Page 144, activity 8-1-3, question 12. Delete "What
is the output?".
Chapter 10. Exception handling
Page 164, activity 9-1-5, question 7. On part 4, the range of i should
be 0 < i <= 1, not 0 < i < 1.
Page 165, activity 9-2-1, question 1. First, the condition of the second
loop should be c!=b[r].length, and not r!= c[r].length. Second, in the
body of the second loop, the array reference d[r][c] should be b[r][c].
Page 167, activity 9-2-6, question 10. Which of the following three
arrays, not two arrays.
Chapter 11. Packages
Chapter 12. Interfaces
Chapter 13. Programming style
Page 182, activity 12-3-2, question 3. The question
doesn't make sense, because interface Comparable has nothing to do with
negative numbers. It deals only with comparing values for equality or less
than, and it can be used for objects other than numbers.
Chapter 14. Testing and debugging
Chapter 15. Recursion
Page 194, activity 14-2-2, question 4. The method
is TempConvert.KelvFromFahr, not TestConvert.KelvFromFahr.
Chapter 16. Applets
Page 200, activity 15-2-1, question 2. Braces are
missing around the array initializer in the first statement.
Chapter 17. GUIs and even-driven programming
Appendix A. Java Language Summary
Append B. Installing and running Java
Appendix C. Javadoc
Appendix D. Java API specifications