import java.lang.reflect.*;
public class StaticTest {
public static void test(Object obj){
Class clazz=obj.getClass();
//System.out.println("类名:"+clazz.getName());
Method[] ms=clazz.getDeclaredMethods();
//long len=Array.getLength(ms);
int len=ms.length;
for(int i=0;i<len;i++){
System.out.println("类名:"+clazz.getName()+"方法名:"+ms[i].getName());
}
}
class A{
public void b(){}
public void c(){}
public void d(){}
public void e(){}
}
public static void main(String[] args){
StaticTest t=new StaticTest();
StaticTest.A a=t.new A();
test(a);
}
}