I have a Class
variable that holds a certain type and I need to get a variable that holds the corresponding Array type. The best I could come up with is this:
Class arrayOfFooClass = java.lang.reflect.Array.newInstance(fooClass, 0).getClass();
Is there a way to do this without creating the new instance?