import java.lang.reflect.Array; public class Main { public static void main(String[] argv) throws Exception { int[] ints = (int[]) Array.newInstance(int.class, 10); } }