i want to initialize an array from another multidimensional array. The thing is i don't want the elements, the second array only needs to be the same size.
like i have
int table[1][2];
table[0][0] = '1';
table[0][1] = '2';
table[0][2] = '3';
table[1][0] = '4';
table[1][1] = '5';
table[1][2] = '6';
}
and i need:
int copyofthetable[1][2];
copyofthetable[0][0] = '0';
copyofthetable[0][1] = '0';
copyofthetable[0][2] = '0';
copyofthetable[1][0] = '0';
copyofthetable[1][1] = '0';
copyofthetable[1][2] = '0';
i have tried arraycopy but it copies the elements as well. note that i don't have the size of the first array beforehand and its given later. thanks :)
table.lengthandtable[0].length(assuming the firstlengthis > 0)