Errata


Print Print Icon

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question



Version Location Description Submitted By Corrected
Printed Page 3

http://www.japhar.org

NOW READS:
http://www.hungry.com/old-hungry/products/japhar/

Anonymous  Jul 2005
Printed Page 118

http://lavarand.sgi.com

NOW READS:
http:// www.lavarand.org

Anonymous  Jul 2005
Printed Page 155
6.1 footnote

"Date's getTime() returns the time in seconds" -> NOW READS "...milliseconds"

Anonymous  Jul 2005
Printed Page 165

The text under the example should read 2 11/12 years not 3 11/12 years
(from the end of 2000 to the end of 2003 is about 3 years, not 4).

Anonymous 
Printed Page 190
5 lines from bottom

List l ist = new ArrayList();
should be:
List list = new ArrayList();

Anonymous 
Printed Page 254
1-line code example at top of page

1) It is probably preferable to use System.out.printf() instead of System.out.format();
they behave identically, but printf() is the name that has been used
for this functionality since the early 1970's in a wide range of programming languages
2) It is definitely better to omit the "1$", "2$" etc unless they
are in some weird order, since the defaults do the obvious thing.
3) The example should arguably end with the newline printer, %n

So the example could be re-written as follows (and will be in a new code file PrintfDemo):

System.out.printf("%04d - the year of %f%n", 1951, Math.PI);

Anonymous 
Printed Page 273
code in middle of the page

PrintWriter toSwedish = new PrinterWriter(

NOW READS:
PrintWriter toSwedish = new PrintWriter(

Anonymous  Jul 2005
Printed Page 354
13.8 solution code

g.drawImage(0, 0, myImage, this)

NOW READS:
g.drawImage(myImage,0, 0, this)

Anonymous  Jul 2005
Printed Page 355
loadImage() method, line 2

The commented line assigning an Image to the image variable:
Image = getImage(...

NOW READS:
image = getImage(...

Anonymous  Jul 2005
Printed Page 586
source code, after //Enable logging

DriverManager.setLogStream()

NOW READS:
DriverManager.setLogWriter(new PrintWriter(System.err));

Anonymous  Jul 2005
Printed Page 697
2nd code example, 2nd line

indexof
should be: indexOf

Anonymous 
Printed Page 702
Code following 1st paragraph,1st line

Lock theLock = ....

NOW READS:
Lock lock = ....

Anonymous  Jul 2005