Write a 2d array of integers to a file (processing solutions only)
in
Programming Questions
•
11 months ago
Can any one show me how to do this it must be done for processing Icant use java or any thing else. So far I have only been able to print the integers to the console but even that doesnt come out right. Is there any function to print a 2D array o to a text file? Here's the code i have so far
int [][] x=new int [2][11];
for (int i = 0; i < 11; i++){
for (int j = 0; j < 11; j++){
x[0][j] = (j*2);
x[1][j]= (j*3);
println (x);
}
}
int [][] x=new int [2][11];
for (int i = 0; i < 11; i++){
for (int j = 0; j < 11; j++){
x[0][j] = (j*2);
x[1][j]= (j*3);
println (x);
}
}
1