Hoping for something more elegant than
if (i>0 && i<100)
If you're looking for something more original than
if (i > 0 && i < 100)
you can try this
import static java.lang.Integer.compare; ... if(compare(i, 0) > compare(i, 100))