Errata - Java By Dissection (second edition)
You can purchase the second edition at:
www.lulu.com/JavaByDissection.
Updated by date
Copies purchased on or after August 2, 2006 carry the
notation "Updated: date" on page ii.
Updated: August 2, 2006
- Wesley Mackey pointed out that the Primes program in section 5.9.1 would
be more efficient if the expression "j < Math.sqrt(100)" was changed to
"j*j < 100". The latter uses an integer multiply instead of a floating point
square root computation. That change will appear in future versions. In
addition, the 3rd parameter to the call crossOut() could be j*j instead of j+j.
The justification for that is left as an exercise for the reader.
Prior to August 2, 2006
Copies purchased prior to August 2, 2006 may contain one or more of the
following errors.
- The range values in the first table on page 28 are wrong. The correct table
can be found in the free pdf file of the first three chapters at
www.lulu.com/JavaByDissection.
- The table of contents and section numbering for chapter 3 are messed up with
the subsection numbering being erroneously reset (possibly multiple times).