compare an int to 2 values
<p>I am trying to change the background colour of a JTextField based on the value of an INT.  Why does the following comparison code not work?</p>

<pre><code>if (braincomplete &lt; 0 &amp;&amp; &gt; 10){
        //set the colour red        
    }
if (braincomplete &gt; 10 &amp;&amp;  &lt;18){
        //set the colour yellow 
}
if (braincomplete &gt;18){
    //set the colour green
}
</code></pre>

<p>I thought &amp;&amp; was correct for Java? </p>
