title: boolean example in Schildt book
body: <p>I'm really new to Java, but it sucks all my free time, it's very interesting to study, but I need a little help.</p>
  <p>Here's an example of Boolean test from Schildt's book:</p>
  <pre><code>public class BooleanTest {
  public static void main(String args[]){
      boolean b;
      b = false;
      System.out.println(&quot;Expression b &quot; +b);
      b = true;
      System.out.println(&quot;Expression b &quot; + b);
      if (b) System.out.println(&quot;This code is ok.&quot;);
      b = false;
      if (b) System.out.println(&quot;This code is not ok.&quot;);
      System.out.println(&quot;10 &gt; 9 &quot; + (10&gt;9));
  }}
  </code></pre>
  <p>This code shows me result:</p>
  <blockquote>
  <p>Expression b false</p>
  <p>Expression b true</p>
  <p>This code is ok.</p>
  <p>10 &gt; 9 true</p>
  </blockquote>
  <p>First line is ok, second is ok, third too, but why the fourth doesn't show me &quot;The code is not ok.&quot;, 'cause there is &quot;b=false&quot; and it should say that? Why it jumps to the last System.out.println?</p>
  <p>Can someone add commentaries to this example? Thanks a lot!</p>