I meant
4 is at location image1[0][1]
4 is the value.
so,
top = 1;
bottom = 2;
left = 1;
Type: Posts; User: IAmHere
I meant
4 is at location image1[0][1]
4 is the value.
so,
top = 1;
bottom = 2;
left = 1;
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
1 is (0,0)
2 is (1,0)
3 is (2, 0)
4 is (0, 1)
.
.
Sorry for the confusion.
The first 2d array is:
int[][] image1 = { {1, 2, 3},
{4, 5, 6},
{7, 8, 9}, };
The second 2d array is:
top = 1;
bottom = 2;
left = 1;
(top, left) is the coordinates for the top left corner of the 2d array.
(bottom,right) is the coordinates for the bottom right corner of the 2d array.
So, we have 4 variables.
...
Given a 2d array
and
4 variables that creates another 2d array.
(top, left) and (bottom,right)
(Those are the coordinates to form another 2d array.)
These variables can partially cover the...