LearningProcessing
LearningProcessing copied to clipboard
4-2 Variable naming rule error
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!
Ooops, thanks for the correction!