Big Java, 3rd ed. / Java Concepts, 5th ed.

Bug Report Page

.  .

How to Tell which Printing You Have

On the copyright page (facing the first page of the Preface), there is a printing history of the book. The printing history is a row of numbers that—at the 1st printing—looks like this:

10 9 8 7 6 5 4 3 2 1

At each subsequent printing, one number is removed from the end of this row of numbers to indicate which printing of the book you have. For example, the last number in the row of numbers in the 2nd printing is 2, and so on.

[B3C2] = fixed in Big Java's 3rd printing, Java Concepts 2nd printing
[B3] = fixed in Big Java's 3rd printing

Page numbers have a prefix B for Big Java or C for Java Concepts.

Page B69/C63
Remove import javax.swing.JPanel;
Page B74/C68 Exercise R2.7
Change “Give Java code to construct the following objects:” to “Give Java code for objects with the following descriptions:” and change

b. A string "Hello, Dave!"

to

b. A string with the contents “Hello, Dave!”

(i.e. not monospaced and curly quotes)

Page B128/C117
Change void getPosition() to double getPosition()
Page B157/C143
Last statement of Step 6 should be System.out.println("Expected: 22"); (It is missing a ")
Page B180/C161
Change Agent5 to "Agent5"
Page B297
Change
BankAccount a = (BankAccount) a.get(0); // Need cast

to

BankAccount a = (BankAccount) accounts.get(0); // Need cast
Page B317
Change for (x : xs) to for (double x : xs)
Page B222/C198
In Exercise P5.7, change “and prints the lexicographically smallest and largest one:” to “and prints them in lexicographically sorted order:”
Page B269/C231
Yikes—a bug in the debugging example! Change
System.out.println("Syllables in " + input + ": " 
   + syllables);

to

System.out.println("Syllables in " + w.getText() + ": " 
   + syllables);

In the program run, change “Syllables in peach.: 1” to “Syllables in peach: 1”.

Page B320/C278 ch07/regression/BankTester.java
Add
import java.util.Scanner;

to the top of the file. Change

int accountNumber = in.nextInt;
to
int accountNumber = in.nextInt();
Change
int matchingBalance = in.nextLine();
to
int matchingBalance = in.nextInt();
Page B325/C282
Change for (x : values) to for (double x : values)
Page B363
Add a semicolon to the end of
double r = sqrt(PI);
Page B382/C334
In Exercise P8.16, change "the Tax class" to "the TaxReturn class".
Page B493/C424
Change “there is a penalty for early withdrawal” to “there is a $20 penalty for early withdrawal”
Page B525/C454
In Exercise P11.8, change "java -t tabwidth filename" to "java TabExpander -t tabwidth filename"
Page B582/C506
In Exercise P12.8, change PrintSream to PrintStream
Page B670/C586
Change
System.out.print(iterator.next() + " ");

to

System.out.print(name + " ");
Page B729
Replace line 112 with
      if (smallestParent == toBeRemoved) 
         smallestParent.right = smallest.right; 
      else 
         smallestParent.left = smallest.right; 
Page B730
Line 160 should use print instead of println
Page B736
Between line 35 and 36, insert
System.out.println();
Page B739
Add () in the first line of code:
PriorityQueue<WorkOrder> q = new PriorityQueue<WorkOrder>(); 
Page B747
In line 78, change “while they are larger than last” to “while they are smaller than last”
Page B913
In exercise 21.10, replace
http://mach.usno.navy.mil/cgi-bin/aa_moonphases?year=2006

with

http://aa.usno.navy.mil/cgi-bin/aa_moonphases.pl?year=2006
Page B1030
Remove h:selectManyRadio from the table
Page B1064
In the Color constructor, change float to int (3x), and change 0.0F and 1.0F to 0 and 255.
Page B1113
The line return n * factorial(n - 1); should line up with the preceding lne.
Page B1115
There shouldn't be a colon after group1 and group2, but there should be one after constant1 and constant2
Page B1143
Change “Arithmetic right shift” to Right shift with sign extension” and “Bitwise right shift” to “Right shift with zero extension”

Thanks to Ryan Cuthbertson, Marcello Dalpasso, Dan DeMicco, John Gallagher, Rick Giles, Rodney Hoffman, Cindy Johnson, Lawrence Johnson, Joseph O'Donnell, Kandukuri Vijayanth Reddy, Henk Schotel, David Sharpe, Douglas Switzer, Jørgen Villadsen, Peter Warburton, Floris Wiesman, Rick Zaccone, and (your name might go here) for their bug reports and suggestions

Please report any remaining bugs in this edition on the bug report form.