question about loop and break command
<p>i have tested following code which  might print  0 and 2 but it print 1 and 1 why?</p>

<pre><code>public class break_command {


    public static void main(String[] args) {
       for (int i=0;i&lt;10;i++){
            for (int j=1;j&lt;10;i++){
                if ((i+j) %2==0){
                    System.out.println("i  "+ i +"  j   " +j);
                    break;
                }


            }
            break;
       }
    }

}

result//
i  1  j   1
BUILD SUCCESSFUL (total time: 0 seconds)
</code></pre>
