Map map = new HashMap();
Method[] methods = map.getClass().getMethods();
Method method = map.getClass().getMethod("put");
I see method "put" in methods array, but I receive NoSuchMethodException for getMethod("put").
Why is it so and how can I have access to put method? I need to invoke it.
Aucun commentaire:
Enregistrer un commentaire