I have an object, c
, of type Class
(I get hold of the object in runtime so I can't tell in compile-time which class it represents.)
Suppose c
represents the class Foo
. I now want to get hold of a Class
-instance which represents Foo[]
.
How is this done best using the standard Java API?