Beginning Java: Printing out multiplication table
<p>I am trying to print out a multiplication table of even numbers. Can anyone assist? I need someone to explain why I'm getting a strange result instead of the one that I want. </p>

<pre><code>public class even {

public static void main(String[] args)
{
int i = 0;

while(i &lt;= 10){
int j = 0; 
    while(j &lt;= 10) {
        j+=2;
        System.out.print(i*j + "\t");
    }
    System.out.println();
    i+=2; 
}
}

}
</code></pre>

<p>The output that I want is to print out : 0,2,4,6,8 on the vertical axis and again on the horizontal axis. I want the chart to read like a multiplication table. </p>
