Say I had a 2d array called answers[][]. The array is 2 columns, so 0 and 1 and about 60ish rows long. I need to write the whole Array to a file I create. And then close that file. Any idea how to do this using Java? Solution import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; public class WriteFile { public static void main(String[] args) throws IOException { //lets array has elements inside int answers[][] = new int[60][2]; String fileName = \"records.txt\";// output file name File file = new File(fileName); FileWriter fw= new FileWriter(file); BufferedWriter bw = new BufferedWriter(fw); int i=0; while(i < 60){ // reading 60 rows bw.write(answers[i][0]+\" \"+answers[i][1]); // writing current column bw.newLine(); // writing new line i++; } bw.close(); fw.close(); } } .