| |||||||||||
|
|
Errata for Java, Java, Java, 3ELast updated: August 15, 2006These are the errors that have been brought to our attention since publication of the third edition. If you find an error in the text or just wish to make a suggestion for improving the text, please email us at: ralph.morelli@trincoll.edu. We will acknowledge any contributions we receive on this page. Page 133: - In Figure 3.17: Page 137: - In Figure 3.19: Page 143: - Change Exercise 3.3(c) to: page 172, In Figure 4.20, the Greeter() referred to on line 10 is defined as follows: public class Greeter {
public String greet(String name) {
return "Hi " + name + " nice to meet you.";
}
}
Page 173, at the top of the page, Page 175, Figure 4.21 - Insert the following statement at beginning of the
buildGui() method Page 185, Figure 4.28 Page 189, In Solution 4.3 Page 190: - Change Exercise 4.4 to: Page 192: - In the last sentence of Exercise 4.20: Page 240: - In Solution 5.16, the kb methods should be used as follows: public class KBTestOneRowNim
{
public static void main(String argv[])
{ KeyboardReader kb = new KeyboardReader();
OneRowNim game = new OneRowNim(11);
while(game.gameOver() == false)
{ kb.prompt(game.report()); // Prompt the user
kb.prompt("You can pick up between 1 and " + OneRowNim.MAX_PICKUP + " :");
int sticks = kb.getKeyboardInteger(); // Get move
game.takeSticks(sticks); // Do move
System.out.println();
} // while
kb.display(game.report()); // The game is now over
System.out.print("Game won by player ");
System.out.println(game.getWinner());
} // main()
} // KBTestOneRowNim
Page 246: - In the third sentences of Exercises 5.25 and 5.27: Page 277, Figure 6.12: - In main() method: Page 301: - In the last sentence of Exercise 6.24: Pages 328-329: - Replace all occurrences of Button with JButton Page 344: - In the last sentence of Exercise 7.10: Page 363: - In the second sentence of Subsection 8.3.2: Page 344: - In Exercise 8.9: Page 448-449: - In Figure 9.32 and other code snippets: Page 451: - In the displayed main() method near the bottom of the page:
Page 461: - In Solution 9.7: Page 468: - Two typos in Exercise 9.25: Page 509: - In Exercise 10.18: Page 601: - In Exercise 12.24: Page 705: - Delete the last sentence of Exercise 14.18: Page 794: - In Figure 16.31: Page 797: - In Figure 16.33: Page 798: - In Figure 16.35: Page 830: In the second to last line: |
|
|