Errata Sheet For Blue Pelican Java

Textbook ver 3.0.5g

 

 

The latest downloadable pdf version of BPJ (http://www.bluepelicanjava.com) will already have these corrections in place. Visit the Errata page for an updated errata sheet.

 

 

Table of Contents, page 5 … the descriptions of Appendices A & B should be reversed as follows:

Appendix         Key Words Reserved words that are part of Java         A-1

      A

Appendix         Escape Sequences \b \t \n \” \’ \\                                   A-1

      B

 

Page 5-2 ….Change the following:

      Constants must be initialized at the time they are declared.

 

final double PI; //illegal, must be initialized here on this line

PI = 3.14159;

          to

 

                  When in a method, constants may be initialized after they are declared.

 

      final double PI;  //legal

      PI = 3.14159;              

 

Page 10-2 ……The last section on this page has been modified to also include short and byte types as the switch variable (in addition to the more often used int and char types.).

 

Page 19-5 ……The “Read-only” section has been modified to emphasize that direct references to the collection are not read only.

 

Page CS1-2 … Change  print  inside the for loop to  println

 

Page CS1-3 … Change  print  inside the for loop to  println

 

Page H-1, …The function for Arithmetic Operator >>> should read, “Bitwise shift right,
                     sign bit is not preserved.”