Errata Sheet For Blue Pelican Java

Answerbook ver 3.0.5h

 

The latest downloadable pdf version of BPJ will already have these corrections in place.

 

Page 17-2 & 17-3

      Problem 4, change the code as follows:

public void flay(double [] peewee)

{

peewee = null;

double pf = peewee[7];

System.out.println(pf);

}

 

      Problem 7, change to:

What does (true  |  true  ^  true) yield?

 

      Problem 8, change to:

What does (false  &&  false  |  true) yield?

 

Page 17-2  Problem 7, answer is true.

      Problem 8, answer is false

 

Page 33-5...Answer to # 3 is:

                   E  D is “almost” right but improperly increments j when j == g tests false.

 

Page 45-7, Problem 6, B  because Comparable is not a class. It’s an interface.