shiffman / LearningProcessing

A repo for examples from the book Learning Processing
http://learningprocessing.com
606 stars 276 forks source link

4-2 Variable naming rule error #194

Open ybakos opened 8 years ago

ybakos commented 8 years ago

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:

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!

shiffman commented 8 years ago

Ooops, thanks for the correction!