title: Recursive method to print array
body: <p>This is the method code:</p>
  
  <pre><code>public static void printMatrix(int[][] m, int i, int j) {
      if (i == m.length ||j==m.length) {
          System.out.println();
      } else {
          System.out.print("[" + m[i][j] + "]");
  
          printMatrix(m, i, j++);
          printMatrix(m, i++, j);
      }
  
  }
  </code></pre>
  
  <p>I don´t know why it just prints the first position of the array until a StackOverFlow error.</p>
  
  <p>Thanks for the help.</p>