So, I\'m making a site about WWI as a school assignment, and I want this to appear in every document:
<
Arrays.deepToString(arr)
only prints on one line.
int[][] table = new int[2][2];
To actually get a table to print as a two dimensional table, I had to do this:
System.out.println(Arrays.deepToString(table).replaceAll("],", "]," + System.getProperty("line.separator")));
It seems like the Arrays.deepToString(arr)
method should take a separator string, but unfortunately it doesn't.