September 2019
Intermediate to advanced
816 pages
18h 47m
English
Starting with JDK 12, we can get Class for an array type whose component type is described by the given class via Class.arrayType():
Class<?> arrayClazz = clazz.arrayType();// modern.challenge.Pair<L,R>[]System.out.println("Array type: " + arrayClazz.toGenericString());