Home : What's New
Errata to
JavaTech: Introduction to Scientific and
Technical Programming with Java
JavaTech
Course Map
     About JavaTech
     Codes List
     Exercises
     Feedback
     References
     Resources
     Tips
     Topic Index
     Course Guide
     What's New

p.65

Test (int j, double y) {
  i = j;
  double x = y;
}

should be

Test (int j, double y) {
  i = j;
  x = y;
}

p.107

void double aMethod (Shape[] shapes)

should be

void aMethod (Shape[] shapes)

 

In the Complex class for complex numbers, discussed in Chapter 4 of the book and here in Chapter 4: Tech: Improved Complex Number Classs, the instance variables should be declared "public" so that classes in other packages can access these variables directly.

p.125

public class Complex {

  public double fReal;
  public double fImg;

   ...


  
  Part I Part II Part III
Java Core 1  2  3  4  5  6  7  8  9  10  11  12 13 14 15 16 17
18 19 20
21
22 23 24
Supplements

1  2  3  4  5  6  7  8  9  10  11  12

Tech 1  2  3  4  5  6  7  8  9  10  11  12
Physics 1  2  3  4  5  6  7  8  9  10  11  12

Java is a trademark of Sun Microsystems, Inc.