title: Java while loop boolean evaluation
body: <p>I am not sure if i understand this loop</p>
  
  <pre><code>boolean b = false;
  while(!b) {
  System.out.println(b);
  b = !b;
  }
  </code></pre>
  
  <blockquote>
    <p>it returns a false, loop is executed once  </p>
  </blockquote>
  
  <p>but does <code>while(!b)</code> set <code>b= true</code> ? like <code>!b = !false</code> and <code>b</code> is printed out?  </p>