for (int j = 0; j < 2; j++)
for (int i = 0; i < 1; i++)
box[i][j] = box[i] [j + 1];
The above code is now working correctly. Thanks for commenting Junky.
kind regards av8
Type: Posts; User: av8
for (int j = 0; j < 2; j++)
for (int i = 0; i < 1; i++)
box[i][j] = box[i] [j + 1];
The above code is now working correctly. Thanks for commenting Junky.
kind regards av8
I have a 2D array called box.
int[][] box = new int [2][3];
Its has elements as follows: