java - Getting the array Class<?> of a given class -


given class<?> describes class a, somehow possible class<?> matches class a[]?

class<?> clazz = a.class; class<?> arrayclazz = clazz.toarray(); // ??  assert arrayclazz.equals(a[].class); 

java.lang.reflect.array.newinstance(clazz, 0).getclass()


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -