• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Identifier

 
Sneha Bharti
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!!!
Can anyone tell me why e# is illegel identifier?
 
mohammad shaid
Ranch Hand
Posts: 86
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it is ilelgal..
 
Sneha Bharti
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much Kevinn..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic