aspose file tools*
The moose likes Beginning Java and the fly likes want to know Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "want to know" Watch "want to know" New topic
Author

want to know

Ravinder Partap
Greenhorn

Joined: Feb 03, 2008
Posts: 8
I want to ask Is int e# illegal identifier name ? Why.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Welcome to JavaRanch!

Have you tried this? Did it work?

See JLS - 3.8 Identifiers.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Amit Bhat
Greenhorn

Joined: Jan 30, 2008
Posts: 3
Rules for Legal Identifiers

Definition: Letter = (A-Z, a-z or '$' or '_' )
Definition: Digit = ( 0 -9 )


An Identifier:
Must begin with a letter, '$', or "_".
After the first char, any char that is a letter (including '$' or '_') or digit may be used.
Cannot be a reserved word (aka keyword).
No spaces are allowed in the identifier.
Cannot have a Java operator symbol (because not a letter or digit).
No limit to the number of letters & digits (0 - 9).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: want to know
 
Similar Threads
IT'S FINALLY HERE!!!
Any help
FCC allows the "f"-word on network TV
Does one have to be black to be African American?
Happy Birthday Sriraj Rajaram