Author
valid identifiers
anandkrisnan variar
Greenhorn
Joined: Feb 26, 2003
Posts: 16
posted Apr 07, 2003 23:05:00
0
Which are valid identifiers? 1) _variables 2) �currency 3) val$ue 4) @purr 5) 2digits Also can u tell what is the '�' in the '�currency'
Regards,<br />anand.<br />IBM Global Services India.
Kasi lingam
Greenhorn
Joined: Apr 01, 2003
Posts: 8
1,2,3 are valid identifiers. 4,5 are not valid identifiers.It starts with number and invalid character. � is the currency for Japan 'YEN'.
Jessica Sant
Sheriff
Joined: Oct 17, 2001
Posts: 4313
� is the currency for Japan 'YEN'. Exactly right. Identifiers can start with a letter, underscore or a currency symbol, and they can include digits in any location EXCEPT the first one.
- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
subject: valid identifiers