i want to create a array of (vector of (arrays that size 2)) like
Vector<Integer[2]>[]
i tried
Vector<Integer[]>[] arr2 = new Vector[5];
for (int i=0; i<5; i++){
arr2[i] = new Vector<Integer[]>();
}
int[] arr = {1,5};
arr2[0].add(arr);
but it have a error
The method add(Integer[]) in the type Vector<Integer[]> is not applicable for the arguments (int[])
is it possible convert int[] to Integer[] or create vector with int[] instead of Integer[]?
how can i create this??