HerbSchildt.com

 

Corrections for

Java: A Beginner's Guide, 3rd Edition

 

Errata #1. Page 561:  There is a misprint in answer 10, the prime number program.  In the book, this line

for(j=2; j < i/j; j++)

should be

for(j=2; j <= i/j; j++)

Notice the addition of the =, shown in red.

Note: The code is correct in the free download for the book that is available at Osborne.com.  The misprint affected only the book.

 
  © 2008  HerbSchildt.com  All rights reserved worldwide. No duplication allowed without prior written permission.