read source code from a class
is there a way to display the source code of a class in an application and give it to a String variable?So i can get the values given by one class or even a package?
What i want is similar to the NetBeans IDE feature where the Methods and values pops up in a window with the javadoc if you import a class or operate with values.Hope you know what i mean.
String classSource=new String(java.lang.String.*)
I guess,the better question is,how NetBeans does this?