Book Description

About the Author

Table of Contents

Source Code

Errata

Send Comments

Teaching Materials

Author's Homepage
 

Object-Oriented Software Development Using Java
Xiaoping Jia, Ph.D
Errata

First Print (October 1999)

  • Page 63 

  • Near the top. Change 
       
      int pa[] = new Point[10]; 


    to 
     

      Point pa[] = new Point[10];
  • Page 77 

  • In three places, change 
     
      total unitPrice * quantity; 
    to
       
      total = unitPrice * quantity; 
  • Page 79

  • Near the bottom. Change 
     
      getGlobalMoveCount
    to
     
      getGlobalMoveCount()
  • Page 142 

  • Code example MyClass. Change 
     
      void method1(double d) { ... } // overrides method1 in X
    to
       
      void method1(double d) { ... } // overrides method1 in Y
  • Page 151

  • Example hashCode(). Change 
     
      sun << 8
    to 
      sun <<= 8
  • Page 151

  • Second to the last line. Change clone to clone().
  • Page 170

  • The paragraph for Arc. Change 
     
      void drawArc(int x, int y, int w, int h,
                   int ra, int ra)
      void drawArc(int x, int y, int w, int h,
                   int ra, int ra)


    to
     

      void drawArc(int x, int y, int w, int h,
                   int rs, int ra)
      void drawArc(int x, int y, int w, int h,
                   int rs, int ra)
  • Page 175

  • In Exercise 4.3.  Change conoical to canonical.
  • Page 245

  • Class CountWords. Delete the following line 
       
      import java.util.collections.*; 
    This line is no longer necessary in the current version of JDK. 
  • Page 249 

  • Class WordFrequency. Delete the following line 
     
      import java.util.collections.*;
  • Page 251

  • Near the top. Change 
       
      int compare(Object o1 Object o2)
    to
       
      int compare(Object o1, Object o2)
  • Page 253 

  • Class WordFrequency2. Delete the following line 
     
      import java.util.collections.*;
  • Page 272 

  • First bullet item near the bottom. Change 
       
      ActionListner 
    to 
       
      ActionListener
  • Page 292

  • Example 6.14. Purpose. Change 
       
      ... FileInputStream and FileInputStream


    to 
     

      ... FileInputStream and FileOutputStream
  • Page 395

  • Method paint(). Two for statements near the top change to:

    for (i = 1; i < row; i++)
      g.drawLine(0, i * rowHeight, d.width, i * rowHeight);
    for (j = 1; j < col; j++)
      g.drawLine(j * colWidth, 0, j * colWidth, d.height);

     

Book Description - About the Author - Table of Contents
Source Code - Errata - Send Comments
Teaching Materials - Author's Homepage