Say I have a 2D array:
int[][] foo = new int[3][10];
I want to have a better alias name for each 1D array, like:
int[] xAxis = foo[0];
int[] yAxis = foo[1];
int[] zAxis = foo[2];
Is xAxis a reference to the 1st 1D array in 2D array? Cause I don't want the array to be copied again. If not, how do I get the reference to 1D arrays.