title: How to use the statement continue in while loop?
body: <p>Lets take the below code snippet:</p>
  
  <pre><code>int i = 0;
  while ( i &lt;= 10 )
  {
      System.out.println(i);
      if ( i == 8 )
      {
          continue;
      }
      i++;
  }
  </code></pre>
  
  <p>What changes do I have to make in the code to avoid infinite loop?</p>