title: Continue inside If statement inside For loop
body: <p>I have a for loop wherein I need to skip some lines.</p>
  
  <p>In a simpler way, here's what I did:</p>
  
  <pre class="lang-java prettyprint-override"><code>for (int x = 0; x &lt; 6; x++){
      if (x == 3) {
          continue;
      }
      Log.i("LOGLOG","LOGLOGLOG");
  }
  </code></pre>
  
  <p>Will the continue statement work, as in jump to another iteration of the for loop, or not? If not, what is the best way to do this? Or how can I optimize this?</p>
  
  <p>Thanks in advance.</p>