Hi,
Is there any way to concatenate 2
String (or any type) of arrays.
I have got 2 arrays , which I want to join from a specified index of each and assign the results into a new one. Currently I'm using a simple for loop, but that seems to take a considerable time.
Ex: String[] a = new String[1000];
String[] b = {"a" , "b"};
String[] c = new String[1002];
c[0] = b[0];c[1] = b[1];
for (int i=0;i<1000;i++) c[i+2] = a[i];
i.e the first 2 positions in c has to be the array b and rest of them from array a.
Any suggestions using class Array or Collections or any other which would make it faster.
Thanx .