Hi I have the array below, I need to copy the contents into another single dimensional array but only the first row e.g. 0 and 1
String data[][] = new String[][]
{
{"0", "1", "2", "3", "4"},
{"1", "1", "2", "3", "4"}
}
The above code is an example of how I have set my array, I just need the first row but for every colum
I have tried:
for (int r = 0; r < data.length; r++)
{
codes = new String[] {data[r][0]};
}
But that doesnt work, any ideas? Thanks