title: How to exit (go to next element of  parent loop) a for loop inside a for loop
body: <pre><code>for (int i = 0; i&lt;10; i++)
  { 
    //do some validation for record length
  
    //if it is not valid
  
    continue; // goes to the next iteration in for loop for 'i'
  
    for (int j = 0; j&lt;5; j+=2)    
    {
  
       //do some more validation for individual record
  
       //if it is not valid
  </code></pre>
  
  <p>Here it should go to the next <code>i</code> if i use <code>continue</code>. Here it will go to the next <code>j</code>
      Can anyone please let me know how to do this?</p>