Pretty new to Java. I'm trying to use reflection to create an instance of a class, and the class constructor takes a primitive array as a parameter.
Here's what my code looks like:
public A(Integer i, long s)
// Do stuff here
public static void main(String args)
Class cla = A.class;
Constructor con = cla.getConstructor(Integer.class, long.class);
Clearly this won't compile, because of the long.class. So how do I tell the getConstructor() method that one of the parameters is an array of a primitive type?