I have the following code which seems to compile:
int[] arr = {1, 2};
int[][] arr2 = {arr, {1, 2}, arr};
int[][][] arr3 = {arr2};
Could you please explain why the last statement works? Don't we assign a two-dimensional array to a three-dimensional array here?
Thanks