title: Creating and printing a multiplication table using a two dimensional arrays?
body: <p>I'm trying to create a 12x12 times table chart using a two dimensional array. I tried the below code to actually create the array:</p>
  
  <pre><code>    int[][] table = new int[12][12];
  
      for (int row=0; row&lt;12; row++){
        for (int col=0; col&lt;12; col++){
          table[row][col] = row+1 * col+1;
  
        }
      }
  </code></pre>
  
  <p>Now I can't quite figure out how to display it properly, I tried this:</p>
  
  <pre><code>for(int row=0; row&lt;table.length; row++) {
    for(int col=0; col&lt;table[row].length; col++)
      System.out.print(table[row][col] + "\t");
    System.out.println();
  }
  </code></pre>
  
  <p>This gives a 12x12 table but there is no multiplication going on, the 12x12 spot (12th col 12th row in grid) is 23 instead of 144, which now makes me think the actual array is wrong. Any ideas?</p>