This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes find class name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "find class name" Watch "find class name" New topic
Author

find class name

manesh dalavi
Greenhorn

Joined: Nov 22, 2007
Posts: 1
Hi All,
I want to find the names of all classes exist in one java file how to do that
except parsing
-manesh
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37879
    
  22
Welcome to JavaRanch

The easiest alternative to parsing is that you can read the file yourself!
Sree Chinna
Ranch Hand

Joined: Jul 15, 2008
Posts: 42
Use an IDE .
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37879
    
  22
Originally posted by Sree Chinna:
Use an IDE .
But an IDE uses parsing. Actually, they don't usually enumerate the classes in a particular file.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: find class name
 
Similar Threads
security-constraint and error-page
Who said Java is easy?
Input/Output Question...
Enigma
How to take jaworski test offline ?