This page maintains a list of all known errors. All of the errors below have been corrected in the downloadable source code. If you come across an error not listed here, please contact us using the Feedback page.

Chapter 1:

Page 13 – Listing 1.09 and 1.10:

print(getScore(…);

should say:

print(getScore(…));

Chapter 2:

Page 61 – line number 2:

the new code is on lines 13 to 19.

should read:

the new code is on lines 10 to 19.

 

Chapter 3:

Page 82 – printed result:

I am a coder
My name is Bill
I am 59 years old

Bill, 59

I am a coder
My name is Steve
Invalid age provided!

should read:

I am a coder
My name is Bill
I am 59 years old

Bill, 59

Invalid age provided
I am a coder
My name is Steve
I am 59 years old

Page 93

Back to FirstFrame:

“Now that I have explained what is going on in MyFrame

should say:

“Now that I have explained whati s going on in MyPanel

Chapter 4:

Page 108 – download link:

jamescho7.com/book/chapter7/

should be

jamescho7.com/book/chapter4/

This is a very minor issue. The chapter 7 link does provide the identical download.

Page 140 – 

The setCurrentState() method has a minor typo. The correct one is on Page 141.

Chapter 6:

Page 207:

The word ‘Constructor’ is mispelled. This does not affect any code.

Page 208:

Reference to ‘Figure 5-7’ should say ‘Figure 6-7’

Page 215:

duck.jpg should say duck.png

Chapter 8:

Page 313 – Listing 8.08:

Line 01: package declaration is missing a semicolon (;) at the end of the line.

Line 36: Replace new Options()); with options);