Java Not Greater than Or Equal to Operator for Char Type
<p>So I'm trying to write this in a short way:</p>

<pre><code>char letter;
while ( letter!='A' &amp;&amp; letter!='B' &amp;&amp; letter!= 'C... letter!= 'a' 
                                                     &amp;&amp; letter !='b' &amp;&amp; letter!=c)
</code></pre>

<p>Basically if the user does not input a letter between A and C, a while loop will run until A,B,C,a,b,c is inputted. </p>

<p>It should be in the form of </p>

<p><code>while(letter&lt;'a' &amp;&amp; letter &gt; 'c')</code></p>

<p>but it didn't work apparently because if I inputted F, is it greater than 'C', but it is less than 'c', since char uses ACSII. </p>