title: How to break continue a nested for-loop inside a while-loop?
body: <p>Can I use break on a nested for-loop to get back to outer while-loop and use <code>continue</code> from inside the for-loop to force the while-loop to keep going? I can not get the for-loop conditions into my while-loop conditions so the while-loop might stop if I cannot continue on a specifically meet situation.</p>
  
  <pre><code>while(...some conditions...){
      ...print stuff
      for(...some instances are arrays, condition loop array...){
          if(...index meets conditions...){
              ...print once, some arrays might meet condition on multiple index
              break; //to prevent multiple printings
          }
      continue; //i don't want to force another while iteration if(false)
      //or is this continue for(loop) anyway?
      }
  continue; //is this not essentially a while(true) loop with no return?
  }
  </code></pre>
  
  <p>The reason I can not get the for-loop conditions into the while conditions is because there are more if conditions between the two loops like <code>if(array == null)</code> and if-condition <code>x == true</code> <code>getArray()</code> needs to be called if array is not passed in. Most of the time condition <code>y</code> and <code>z</code> print from while-loop but sometimes condition <code>x</code> is met so I need the for-loop. It's after the printing of the for-loop <code>if(index true))</code> I need the while-loop to go again that I'm stuck with? Sometime this might happen from while-loop conditions anyway but I can see that it wont always, further more if for-loop <code>if(index false))</code> is meet I don't want to force the while loop as this could get costly in run time processing and could possibly result in an endless loop.</p>
  
  <p>PS I am a junior programer, I'm not even sure it this is possible? 
  or makes sense, sorry if its a stupid question</p>