Getting the Component Type of an Array Object : Array Reflection « Reflection « Java
- Java
- Reflection
- Array Reflection
Getting the Component Type of an Array Object
public class Main {
public static void main(String[] argv) throws Exception {
Object o = new int[1][2][3];
o.getClass().getComponentType();
}
}
Related examples in the same category