Hello, I'm trying to create an object using the Class class. But when I call a methos from the object I created, the compiler says that such method is not part of the Class class. My code is like this:
class Uno {
public void method() {
}
}
public class Dos {
public static void main(
String args[]) {
Class u = Class.forName("Uno");
u.method();
}
}
My be the question is: �How can I create an Object since its path?
I really hope you to help me.