import java.lang.reflect.*;
public class Refl6
{
public static void main(String args[]) throws Exception
{
Class c=Class.forName(args[0]);
Method m[]=c.getDeclaredMethods();
for(int i=0;i<m.length;i++)
System.out.println(m[i].getName());
}
}
Monday, October 1, 2012
program to retrieve Method names of a class
Subscribe to:
Post Comments
(
Atom
)