You want a Java source code parser; if you click the home (index.html) page of the API documentation you'll see a big block listing all of the SE technologies; the second block on the second row reads 'javac'; click it and you'll see the complete API documentation for the javac compiler. Start reading it and implement your own processor after the text has been parsed.

kind regards,

Jos

11-20-2010, 01:38 PM

mr.othman

mr JosAH i need a java program to do this.

11-20-2010, 02:06 PM

JosAH

Quote:

Originally Posted by mr.othman

mr JosAH i need a java program to do this.

As long as you haven't read javac's API documentation you won't understand any program that uses it; after you've read the API documentation it'll be easy to write such a program yourself and we'll be glad to help you out if you're stuck.

kind regards,

Jos

11-20-2010, 02:14 PM

Fubarable

email deleted in initial post. Poster: please don't post your email address as all communications in this forum should be public. Also, if you need a Java program to do something, then by all means, please feel free to write this, and if you need help with your program, then please show us your code and ask your question and we'll be more than happy to help you, but please don't demand one be given you as that's not what this forum is for.