Java创建空数组的方法有以下几种:
int[] arr = new int[0];
int[] arr = {};
int[] arr = Arrays.copyOf(new int[0], 0);
int[] arr = (int[]) Array.newInstance(int.class, 0);
ArrayList list = new ArrayList<>();
Integer[] arr = list.toArray(new Integer[0]);