myWallJSON
myWallJSON

Reputation: 9502

How to pass Null\Void instead of an array?

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()?

Upvotes: 1

Views: 3430

Answers (1)

Ben Hocking
Ben Hocking

Reputation: 8072

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

Upvotes: 6

Related Questions