So I have this Class c, and I want to get the Class object that represents an array of the type c represents. Is it possible? I can't find any way...
Clarifying: somewhere else I have:
Class<?> c = Class.forName("data.Person");
OK, so I have this class c now. And I want to have the Class that represents the array of persons. The same as if I did:
Class<?> cs = data.Person[].class;
But I want to do it with reflection. I know nothing about the original class, but the reference c to it.