LearningProcessing icon indicating copy to clipboard operation
LearningProcessing copied to clipboard

4-2 Variable naming rule error

Open ybakos opened this issue 9 years ago • 1 comments

In Section 4-2, Variable declaration and initialization, there's an error in the second paragraph. "...and must start with a letter..." However, identifiers can start with an underscore.

Java's identifier rules are:

  • cannot be the same as a reserved word
  • can only include alphanumerics and the underscore
  • cannot start with a digit

This is minor, but students have been getting some test questions wrong and cited the book as the reason why. So I gave them a few points and am posting this errata.

Thanks for all things LP!

ybakos avatar Feb 02 '16 22:02 ybakos

Ooops, thanks for the correction!

shiffman avatar Feb 03 '16 02:02 shiffman