Elegant way to code if (10 < x < 20)
<p>Is there an elegant way in Java to code:</p>

<pre><code>if (10 &lt; x &lt; 20) {
   ...
}
</code></pre>

<p>i.e. "if x is between 10 and 20"</p>

<p>rather than having to write</p>

<pre><code>if ((x &gt; 10) &amp;&amp; (x &lt; 20)) {
   ...
}
</code></pre>

<p>Thanks!</p>
