Invoking a Java Method by Name using Reflection

This is an example:

Class<?> c = Class.forName("class name");
Method  method = c.getDeclaredMethod ("method name", parameterTypes);
method.invoke (objectToInvokeOn, params);

Just It
Bye

Follow

Get every new post delivered to your Inbox.

Join 447 other followers