public String[][] fetchData()
{
String[][] data = null;
int counter = 0;
while (counter < 10){
data[counter] = new String[] {"abc"};
counter++;
}
return data;
}
Getting the error in this loop.
Please let me know where i am wrong
You need to allocate memory to data.
Read this