title: How to jump between different sections of code?
body: <p>I have the following program structure:</p>
  
  <pre><code>outerLoop:
  for (i =0; i&lt;x; i++) {
      if(check condition) {
         a = /* do something to calculate a */
         goto jump;
      } else {
          //do something else
      }
  }
  
  jump:
  if (check condition) {
     //do something
     goto outerLoop;
  }
  </code></pre>
  
  <p>So like seen above, I want to transfer the control from the <code>if</code> part of <code>for</code> loop to the <code>if</code> condition seen outside the loop. And I want to again jump to the <code>for</code> loop from the <code>if</code> statement. How do I do that? Is there a <code>goto</code> statement in Java?</p>