go to beginning of for statement in java
<p>I'm very new to Java and maybe my question is a bit irritating. </p>

<p>I have two <code>for</code> loops in my code and I want to go to the beginning of each one by a <code>for</code>-<code>else</code> statement. </p>

<pre><code>public static void main(String[] args)
{
    int[][] x=new int[1000][1000];

    int[] Z=new int[1000];

    lable1:
        for(int i=1; i&lt;=1000; i++)
        {
            Z[i]=rand1.nextInt(1000);
            System.out.println("Z["+i +"] = " + Z[i] );

            if(Z[i]&gt;0 &amp;&amp; Z[i]&lt;=Nk)
            {
                int Z1=Z[i]-1;
                lable2:         
                    for(int j = 1; j&lt;=Z1;j++ )
                    {
                        x[i][j]= rand2.nextInt(1000);
                        sum+=x[i][j];
                        if( sum&lt;1000)
                        {
                            x[i][(j+1)]=1000-sum;
                            System.out.println("x[" + i+"][" + j + "] = " + x[i][j]);
                            System.out.println("Nx[" + i+"][" + (j+1) + "] = " +x[i][(j+1)]);
                        }
                        else{
                            // ????
                            //Goto lable2;
                        }
                    }
            }
            else{
                //goto label1;
                // ????
            } 
        }

}
</code></pre>
