Multiplication table with 2d array
<p>I need to make a multiplication table that shows 1 * 1 up to 12 * 12. I have this working but it needs to be in 13 columns in a format that looks like the diagram below, really appreciate any help.</p>

<pre><code>    1    2    3    4    5    6    7    8    9    10    11    12

1   1    2    3    4    5    ...

2   2    4    6    8    10   ....

3

4

5

6

...
</code></pre>

<p>Code so far:</p>

<pre><code>public class timetable {

    public static void main(String[] args) {

         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);
              }
            }

            for (int row = 0; row &lt; table.length; row++) {
                for (int col = 0; col &lt; table[row].length; col++) {
                   System.out.printf("%6d", table[row][col]);
                }
                System.out.println();
             }

    }

}
</code></pre>