Currently I am studying for my Java test. Whist studying I\'ve come across a small problem.
In this for loop:
for ( int i=1; i <= 3 ; i++ ) {
The outer for "grabs" the inner for and iterates over IT. i.e., you have a for loop within a for loop. For each of i in the range 1..3, you must loop j from 1..3 also. As i becomes 2, j resets to 1 and the inner loop runs all over again.