double[] rainfall = new double[12];and
double rainfall[] = new double[12];have?
long[] start = {1,2,3,4,5,6,7}; long[] middle; long[] end;write lines of code so that middle refers to the same data in memory as start, and end refers to a new area of memory containing the same array values as start. Bonus marks if you create and set the values of end in a single simple statement that copies start.
int[][] myData = new int[4][]; int row,column; for (row = 0; row < 4; row++) { myData[row] = new int[row+1]; for (column = 0; column <= row; column++) { myData[row][column] = row+column; } }