You can certainly get a list of methods. Just get the object's Class, then call one of the reflection methods like
However, I have no idea what you mean by "used and unused" methods. Do you mean which methods are called from somewhere else? Code itself can't tell you that. But most IDEs, such as Eclipse, can you what other classes reference your methods.
How do I use
I typed it into my program and it doesn't compile.
Where is the description?
See how to use the reflection api in the Java Tutorials