File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "want to know" Watch "want to know" New topic

want to know

Ravinder Partap

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

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
Amit Bhat

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:
subject: want to know
It's not a secret anymore!