title: printing an array of arrays java
body: <p>Firstly apologies if this is really simple to solve, I am still learning.
  I have an ArrayList of arrays String[][] and I am trying to print them all out.
  when i use the code below it only prints the same board multiple times and not every board that is in the list, i cant see where i am going wrong.</p>
  
  <p>unless it is overwriting everytime?</p>
  
  <pre><code>for (int i = 0; i &lt; Player.getBoardsAll().size(); i++) {
      TextIO.putln();
      TextIO.put("   ");
  
      for (char a = 'A'; a &lt; 'A' + Board.getColumns(); a++) {
          TextIO.put(a, 4);
      }
  
      TextIO.putln();
      TextIO.putln();
  
      for (int r = 0; r &lt; Board.getRows(); r++) {
          TextIO.putf("%-3d", r+1);
  
          for (int c = 0; c &lt; Board.getColumns(); c++) {
              TextIO.put(Player.getBoardsAll(i)[r][c], 4);
          }
  
          TextIO.putln();
          TextIO.putln();
      }
  }
  </code></pre>
  
  <p>This is what is calling and setting the above:</p>
  
  <pre><code>private static ArrayList&lt;String[][]&gt; boardsAll = new ArrayList&lt;String[][]&gt;();
  
  public static void setBoardsAll(String[][] input) {
      boardsAll.add(input);
  }
  
  public static String[][] getBoardsAll(int location) {
      return Player.boardsAll.get(location);
  }
  
  public static ArrayList&lt;String[][]&gt; getBoardsAll() {
      return boardsAll;
  }
  </code></pre>