Create a 10x20 2-dimensional int array


import java.lang.reflect.Array;

public class Main {
  public static void main(String[] argv) throws Exception {
    int[][] ints2 = (int[][]) Array.newInstance(int.class, new int[] { 10, 20 });
  }
}
Home 
  Java Book 
    Runnable examples  

Reflection Array:
  1. Create an array of 10 ints.
  2. Create a 10x20 2-dimensional int array
  3. Fill and display an array
  4. Get and Set the Value of an Element in an Array Object
  5. Get array(component) type
  6. Get array dimensions
  7. Get array length
  8. Get array name and type
  9. Is an Object an Array