Printable Version of this PageHome PageRecent ChangesSearchSign In
Invitation to Tea Party

Error page for the book: Exploring Wonderland

p. 14 exercise 9. It says to add a teapot, a toaster, and a plate. But then later it says to use the quad view to position the teapot and creamer.

reported by Leslie Spivey

p. 105

The comment says that it draws a box as a filled rectangle with an upper left corner at (150,200) and a height of 50 and a width of 50 but the actual order of the parameters is g.fillRect(xLeft,yLeft,width,height) so this is confusing.

reported by Dr. Joseph Austin

p. 156.
The sample code in figure 7.9 is missing a doTogether so that the doublewheel rolls right at the same time the inner wheels roll left. The code should be as shown below:
fixedFerrisWheel.jpg
reported by Barbara Ericson

p.254
The code says
// change the frequency
s.changeFreq.2(i);

it should be
// change the frequency
s.changeFreq2(i);

reported by Leslie Spivey

p. 274.

Line 9 Reads:
value = pixel Obj.getRed();
Should read:
value = pixelObj.getRed();

and

Line 13 Reads:
pixel Obj.setRed(value);
Should read:
pixelObj.setRed(value);

reported by Leslie Spivey


Page 307 mirrorVertical() right before the ending curly braces reads:
right Pixel.setColor(leftPixel.getColor());

It should be (no space in rightPixel)
rightPixel.setColor(leftPixel.getColor()); without the space.

reported by Leslie Spivey



Page 335 scaleUp() right before the ending curly braces and the return statement reads:
targetPixel.setColor(source Pixel.getColor());

It should be (no space in sourcePixel)
targetPixel.setColor(sourcePixel.getColor()); without the space.

reported by Leslie Spivey

Page 409

Has an extra end curly brace half-way down the page (before the public void turnLeft method) in the class ConfusedTurtle.

reported by Leslie Spivey

Page 426 - the replace example is wrong. It shows
> System.out.println(letter.replace("a","!"));
Mr. Guzdial requests the pleasure of your company ...

It should be:
Mr. Guzdi!l requests the ple!sure of your comp!ny

The first replaceAll example has the same problem.

In the second replaceAll example the output of
> System.out.println(test.replaceAll("\\d"," "));
should be:
This is a test.
reported by Leslie Spivey


Page 427 - the first example is wrong. It says:
> System.out.println(input.replaceAll("\\D"," ");
It should be:
> System.out.println(input.replaceAll("\\D","");
reported by Leslie Spivey

Page 536 - exercise 7 has
for (int j = 10; j > 0; j- -) it should be
for (int j = 10; j > 0; j–)

Page 536 - exercise 8 is wrong. It says:
for (int i = 1; i = 5; i++) {
for (int j = 10; j > 0; j-) {
It should be:
for (int i = 1; i = 5; i++) {
for (int j = 10; j > 0; j–) {
reported by Leslie Spivey





Last modified 11 January 2011 at 1:57 pm by ericson