I have a two dimensional string array:
String myTwoD[][] = {{"Apple", "Banana"}, {"Pork", "Beef"}, {"red",
"green","blue","yellow"}};
How do I convert this to a one dimensional string array as follows in JAVA:
OneD[]={"Apple", "Banana","Pork", "Beef","red", "green","blue","yellow"};
Can ArrayUtils be used for this?
Here is the code for my array, I am trying to store all values in a multipage table column to an array for sorting
for (i=0;i<pagecount; i++)
{
for (j=0;j<columncount;j++)
{
array[i][j]= t.getcolumnname().get(j).getText();
}
}