Answer by
MukeshSnehi (11)
import java. io. FileWriter; //add to import list
import java. io. *;
try
{
FileWriter writer = new FileWriter(fileName);
for(int i = 0; i < results. length; i++)
{
for(int j = 0; j < results[i]. length; j++)
{
writer. append(results[i][j]);
if(j < results[j]. length - 1)
writer. append(',');
else
writer. append('\n');
}
}
}
catch(IOException e)
{
e. printStackTrace();
}