title: Java: Printing two dimensional array in grid format
body: <p>I'm having difficulty figuring out the code to print a two dimensional array in grid format.</p>
  
  <pre><code>public class TwoDim {
      public static void main (String[] args) {
          int[][] ExampleArray = new int [3][2];
  
          for (int i = 0; i &lt; 3; i++)
          {
              for (int j = 0; j &lt; 2; j++)
              {
                  ExampleArray[i][j] = i * j;
                  System.out.println(j);
              }   
              System.out.println(i);
          }
      }
  }
  </code></pre>