aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Problem with Identifier Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Problem with Identifier" Watch "Problem with Identifier" New topic
Author

Problem with Identifier

Sneha Bharti
Greenhorn

Joined: May 25, 2010
Posts: 12
Hi!!!
Can anyone tell me why e# is illegel identifier?
mohammad shaid
Ranch Hand

Joined: May 05, 2010
Posts: 86
yes it is ilelgal..


Thanks & Regards,
shaad
Sneha Bharti
Greenhorn

Joined: May 25, 2010
Posts: 12
Thanks for your answer but why its illegal?
It is starting with a character and then it can contain any combination or character,number..etc.. so why so?
kevinn lee
Ranch Hand

Joined: Feb 15, 2010
Posts: 87
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/variables.html
according to this document
Subsequent characters may be letters, digits, dollar signs, or underscore characters.

"#" is not a letter,digit,dollar sign or an underscore.Thats why your identifier is illegal.
Sneha Bharti
Greenhorn

Joined: May 25, 2010
Posts: 12
Thank you so much Kevinn..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Identifier