vendredi 6 octobre 2017

How do I get a method using getMethod() on a class Object which is not defined in class. If the method has primitive type parameter

Method method = classObject.getMethod(methodName,int.class);

When I try this way it looks for the method methodName(int). What if int should be some number.





Aucun commentaire:

Enregistrer un commentaire