Big Java, 4rd ed. / Java Concepts, 6th 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.

[B2]Page Bxxvi
Change 23.1 through 23.5 to 22.1, 22.2, 22.3, 22.4, 22.5.

Change Chapter 24 to Chapter 23

Change 25.1 through 25.4 to 23.1, 23.2, 23.3, 23.4, 23.5.

Change Chapter 26 to Chapter 24.

Change 26.1 through 26.6 to 24.1 through 24.6.

[B3]Page B7
Change “Work on the ENIAC was supported by the U.S. Navy” to “Work on the ENIAC was supported by the U.S. Army”
[B3C2]Page B18/C17
Change
System.ou.println("Hello, World!);

to

System.ou.println("Hello, World!");
[B2C2]Page B30/C28 Exercise P1.11
Change public class Test to public class ImageGreeter
[B3C2]Page B85/C77
Change “your treated objects as black boxes” to “you treated objects as black boxes”
[B3]Page B132
Change “4,195,835 =” to “4,195,835 -”
[B3C2]Page B146/C131
Change “on an object is class, is called” to “on an object is called”
Page B159
Remove the table row “^ Convert letters to uppercase 1.23E+1”
Page B168/C148 Exercise P4.14
After “and prints the two solutions” add “and the expected values”
[B2C2]Page B208/C184 Exercise R5.9
Change the second and third row of the table from “false false false” to ”false false true” and ”false true false”.
[B2C2]Page B211/C187 Exercise P5.1
After “Read in a, b, c and use the quadratic formula.” add, “You may assume that a ≠ 0.”
[B2C2]Page B223/C198
Change Programming Tip 5.2 reference to Productivity Hint 5.2
[B3C2]Page B237/C211
Change “Note that the variable ch is declared outside the while loop because you may want to use it after the loop has finished.” to “Note that the variables ch and position are declared outside the while loop because you may want to use them after the loop has finished.”
[B3]Page B255
Change
// n is even

to

// i is even
[B3]Page B282
Change “The xs parameter” to “The values parameter”
[B2C2]Page B283/C248
Change “You will see in Section 7.4 how to overcome that limitation.” to “You will see in Section 7.3 how to overcome that limitation.”
[B3C2]Page B289/C253
Change “In Java 7, you can access array list elements” to “In Java 8, you will be able to access array list elements”. Change “instead of the get and put

methods” to “instead of the get and set methods.”

[C2]Page C273
Change reference to Productivity Hint 7.1 to Productivity Hint 7.2
[C2]Page C277
Change reference to Special Topic 7.2 to Special Topic 7.3
Change reference to Special Topic 7.3 to Special Topic 7.4
[B3]Page B314
Change int[][] b = new int[3][];

to

double[][] b = new double[3][];

and

b[i] = new int[i + 1];

to

b[i] = new double[i + 1];
Page B318/C281 Exercise P7.1
Change “Add a method toString to the Purse class that prints the coins” to “Add a method toString to the Purse class that returns a string describing the coins”
Page B319/C281 Exercise P7.6
In the equation 1/2 (x0y1 ... - yn-1x0), change the (...) to absolute value |...|, i.e. 1/2 |x0y1 ... - yn-1x0|,
[B2C2]Page B320/C282 Exercise P7.9
In the pseudocode, change Else to If not inRun
[B2C2]Page B321/C283 Exercise P7.12
Change “piles of size 19, 4, 8, 10, and 5” to “piles of size 19, 4, 8, 9, and 5”
[B2C2]Page B322/C284 Exercise P7.16
Remove “or if you are in the lower-right corner,”
[B3C2]Page B344/C304
Change
else if (values.length == 1) return 1;

to

else if (values.length == 1) return values[0];
Page B352/C311
omg.w3c.dom should be org.w3c.dom
[B3C2]Page B368/C325 Exercise P8.20
Change “Repeat Exercise P8.17” to “Repeat Exercise P8.20”
[B2C2]Page B411/C359 Exercise R9.8
Change “look” in last sentence to “use”
[B2C2]Page B413/C361 Exercise P9.10
Change “Your SequenceTester class should display all data in the sequence and check whether the last digits are randomly distributed.” to “Your SequenceDemo class should display the distribution of the last digits of all sequence values.”
[B2C2]Page B416/C364 Exercise P9.33
Change “When the user clicks a “Draw” button, draw a circle with that center and radius in a component.” to “When the user clicks a “Draw” button, prompt for the inputs and draw a circle with that center and radius in a component.”
[B2]Page B439
Change reference to Special Topic 8.9 to Special Topic 8.5.
[B3]Page B451
Change “public BankAccount getAccount();” to “public BankAccount getAccount()” without a semicolon
[B2C2]Page B461/C401 R10.9
Re-letter options “b” through “g” to “a” through “f”.
The first row: Rectangle r = new Rectangle(5, 10, 20, 30); should not be lettered
[B2]Page B473
Change reference to Productivity Hint 7.3 to Productivity Hint 7.2
Page B475 /C414
Change “then a NoSuchElementException occurs.” to “then an InputMismatchException occurs.”
Page 477 Self Check 3
Change 6,995.0 to 6 995.0
Page 502 Self Check 3
Change ",995.0" to "995.0"
Page 502 Self Check 4
Change the answer to: Because a comma is not considered a part of a floating-point number in Java, the call to nextDouble causes an input mismatch exception. Neither price nor quantity are set.
Page B642/C567
In the second panel of Figure 7, make the arrow labeled (4) end up at the same node as arrows (2) and (3). (The previous position is used to implement remove after a call to next.) 
[B3]Page B650
Change “hypertext transmission protocol” to “hypertext transfer protocol”
[B2C2]Page B659/C583 Exercise P15.10
Change
LispList list = NIL.cons("C").cons("B").cons("A");

to

LispList list = LispList.NIL.cons("C").cons("B").cons("A");
[B2C2]Page B660/C583 Exercise P15.12 (!)
Remove “that returns the length of the list.”
[B2C2]Page B661/C585 Exercise P15.22
Change “print the string” to “add the string to the list of permutations”
[B3]Page B667
Change “see Special Topic 15.5” to “see Special Topic 14.5”
[B3]Page B668
Change “see Section 16.5” to “see Section 16.3”
[B3]Page B673
Change “classes that implements the List, Set, and Map interfaces” to “classes that implement the List, Set, and Map interfaces”.

Change “Finally, you can use the [] operator” to “In Java 8, you will be able to use the [] operator”

[B2]Page B720 Exercise P16.14
Change “Modify the LabeledPoint class of Exercise P16.13” to “Modify the LabeledPoint class of Exercise P16.12”
[B3]Page B729
Change
public <T> static void print(T[] a)

to

public static <T> void print(T[] a)
[B2]Page B757
Change reference How To 10.1 to How To 18.2
[B3]Page B803
Change “Its default constructor” to “The Date constructor without parameters”
[B2]Page B883
Change “such as mckoi or oracle.” to “such as derby or oracle.”
[B2]Page B953
At the end of bullet 4, add:

Compile with

cd WEB-INF/classes
javac -classpath glassfish/modules/jsf-api.jar bigjava/*.java

Remove the sentence “Some servers ... better error messages.” (to keep the pagination).

[B3C2]Page B1071/C632
In the definition for “Constructor”, change “A method that initializes” to “A sequence of statements for initializing”
[B3C2]Page B1071/C632
Remove the entry for “Default constructor”

Thanks to George Basham, Cindy Johnson, Kathy Liszka, Alexander Mentis, Vincent Mierlak, Leonard Ng, Vickie Piercey, Paul Stay, Craig Stutzman, David Taylor, Jonathan S. Weissman, Brent Wilson, 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.