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