title: False boolean = True?
body: <p>I found this code in a book and I executed it in Netbeans:</p>
  
  <pre><code>boolean b = false;
  if(b = true) {
      System.out.println("true");
  } else {
      System.out.println("false");
  }
  </code></pre>
  
  <p>I just don't understand why the output of this code is true,
  Can anyone enlighten me please,
  Thanks.</p>