Having some invokeMethod that takes in (java.lang.String method_name, Object[] params, Class[] params_classes) How would you invoke some method with signature like void MyMethod()?

有帮助吗?

解决方案

Use new Object[0] and new Class[0] to specify empty arrays.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top