Hi Guys,
I have a String array having String "data" ofcourse. I was just wondering if instead of looping through each index as shown in the code below, can I copy all the "data" strings present into a single String. e.g Suppose I have data[0]="a", data[1]="b", data[2]="lmn". Can I get ablmn without looping through the array? I tried java.util.Arrays.toString(data) but it did not work. Any ideas? Is making "data" variable vector is the only solution. Also, is there any way of dumping String array contents into a vector possible if vector is the only solution to the problem. Hoping to hear from you guys soon.
Thanks.
String[] data;
for(int i=0;i<data.length;i++)
{
System.out.println(data);
}