How do I execute a method that takes a parameter of type (n-dimensional) array using reflection?
Just specify Type[].class when looking up the method that has a parameter with a one-dimensional array of type Type. Main.java: This code sample is only viewable to esus.com members Login or become a member! Further Information Author of answer: Joris Van den Bogaert Comments to this answer are only viewable by members. Login or become a member!
Related Questions
- Can I override the equals method or clone method from class Object to take a parameter or return a value of the type that I specify?
- How can I use JUnit to test a method that takes a complex parameter - like an HttpServletRequest?
- How do I execute a method that takes a parameter of type (n-dimensional) array using reflection?