Method prints table incorrectly
<p>I was wondering if someone could help me with a small problem I'm having.</p>

<p>I am trying to print out an array of 100 items, every row needs 10 items, after which it starts a new row. I have done this successfully, however, every row in every column displays the same number. For example. My output would be:</p>

<pre><code>1 1 1 1 1 1 1 1 1 1
2 2 2 2 2 2 2 2 2 2
</code></pre>

<p>When it should be appearing as something along the lines of:</p>

<pre><code>1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
</code></pre>

<p>Here is the following method I am using to print the table:</p>

<pre><code>public static void printTable(int[] emirps) {
    for (int i = 0; i &lt; 100; i++) {
        for (int j = 0; j &lt; 10; j++) {
            // After 10 go to a new line
            System.out.printf("%d\t", emirps[i]);
        }
        System.out.println("");
    }
}
</code></pre>

<p>If anyone can help me pinpoint where I have goofed I'd greatly appreciate it.</p>
