{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


IdentifiersSolutions - Legal and probably ok although seems...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Solution to Identifiers Complete Simple.java 1. simple. Legal but not a good choice -- violates capitalization convention. Still have to change filename because Java is case sensitive. 2. SimpleProgram. Legal and a good choice. 3. 1Simple. Illegal -- can't start with a digit. 4. _Simple_.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Legal and probably ok, although seems cumbersome compared to Simple. 5. *Simple*. Illegal -- can't have * in an identifier. 6. $123_45. Legal but not a good choice -- has nothing to do with the program. 7. Simple!. Illegal -- can't have ! in an identifier....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online