I have yet another Java question 🙂
I have read this thread, where it explains it clearly, but I have two bi-dimensional arrays that I would like to copy.
I understand that this piece of code
int[] array1and2 = new int[array1.length + array2.length];
System.arraycopy(array1, 0, array1and2, 0, array1.length);
System.arraycopy(array2, 0, array1and2, array1.length, array2.length);
But my question is, how do I merge it with two arrays where
int a1[][] = new int [3][3];
int b1[][] = new int [3][3];
int c1[][] = new int [3][6];
Where c1 is the merging of aforementioned arrays?
Use solution from task, that You have mentioned in the question. Example:
Prints:
EDIT
Implementation for any arguments number (Variable-Length Argument Lists):
Prints: