File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes how to append two string ararys? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "how to append two string ararys?" Watch "how to append two string ararys?" New topic
Author

how to append two string ararys?

Ajay Xavier
Ranch Hand

Joined: Jan 03, 2005
Posts: 109
hi,

How to append two multidimensional arrays(both of same dimensions) into a single array? what is the efficient way of doing this?

for eg. i have

String[][] array1 = new String[10][2];
String[][] array2 = new String[6][2];

i need new array which contains both the entries from array1 and array2

Thanks,
Ajay.
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2341
Remember that in Java, a multidimensional array is just an array of arrays.

Look in the System class at the method arraycopy.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to append two string ararys?
 
Similar Threads
Question on similar & identical of Objects
Arrays Problem
illegal start of expression -- arrays
Array declaration
Array