If I have Object array1[] and Object array2[] , how can I make Object
array3[] without copying over each element from each array into
array3 ? Thanks.
The closest thing you could do is this:
array[][] array3 = new Object[2];
array3[0] = array1;
arry3[1] = array2;
But if you modify array3, you will also be modifying array1 or array2
since there is only one copy of the array1/array2 references.
Single dimensioned arrays are always contiguous in ram, so to get an
array3[] you are going to need to copy elements.
--
Roedy Green Canadian Mind Products
http://mindprod.com
"Let us pray it is not so, or if it is, that it will not become widely known."
~ Wife of the Bishop of Exeter on hearing of Darwin's theory of the common descent of humans and apes.