Errata in the ProgramLive Companion (Edition 1, July 2001)





Chapter 0. The Companion

  1. Page 4, line -10. Delete the reference to Visual Cafe and indicate that the lesson for CodeWarrior is lesson 18, not 19.
  2. Page 15, line 11. Delete the reference to Visual Cafe and change the reference for CodeWarrior to lesson 18.
Chapter 1. Intro to Java
 
 

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

  1. 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 ending quotes.
Chapter 8. Arrays
  1. Page 144, activity 8-1-3, question 12. Delete "What is the output?".
Chapter 9. Multidimensional arrays
  1. Page 164, activity 9-1-5, question 7. On part 4, the range of i should be 0 < i <= 1, not 0 < i < 1.
  2. 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].
  3. Page 167, activity 9-2-6, question 10. Which of the following three arrays, not two arrays.
Chapter 10. Exception handling
 
 

Chapter 11. Packages
 
 

Chapter 12. Interfaces

  1. 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 13. Programming style
 
 

Chapter 14. Testing and debugging

  1. Page 194, activity 14-2-2, question 4. The method is TempConvert.KelvFromFahr, not TestConvert.KelvFromFahr.
Chapter 15. Recursion
  1. Page 200, activity 15-2-1, question 2. Braces are missing around the array initializer in the first statement.
Chapter 16. Applets
 
 

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