Do you mean just take all the values and stick them in one array?

Get the total size of the 2D array by doing length*width


int[][] tda = new int[5][5];
int total = tda.length*tda[0].length;...