class test{
public static void main(String[]args{
new test();
}
void method(){
class inside{
int a;
void methodinside(){}
}
}
}
I was declaring class using reflection like :
Class c=Class.forName("test");
Class[]cls=c.getDeclaredClasses();
for(Class cl : cls)
System.out.println(cl.getName());
but, my program cannot finding class inside
.
Aucun commentaire:
Enregistrer un commentaire