How can I stop java 'forgetting' the contents of this array when outside the for loop. I cant think of a better way to get this 2d array into a list - it outputs OK in the loop, but not outside.
for (int i=0; i<multi.length; i++) { for (int j=0; j<multi[i].length; j++) { line[j] = multi[i][j]; System.out.print(line[j]); } }