title: Java do while, while
body: <p>what behaviour can I expect when I run this code:</p>
  
  <pre><code>do while(testA) {
  
      // do stuff
  
  } while(testB);
  </code></pre>
  
  <p>Will it behave like:</p>
  
  <pre><code>do {
      while(testA) {
          // do stuff
      }    
  } while(testB);
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>if(testA) {
      do {
          // do stuff
      } while(testA &amp;&amp; testB);
  }
  </code></pre>
  
  <p>Or something totally unexpected?</p>
  
  <p>I ask this question because I think this is quite ambiguous, and for other people searching on this topic, <em>not</em> because I am lazy to test it out.</p>