Example:
int value = someValue; if (value == (valueOne OR valueTwo OR valueThree)){ //do code }
I would like to avoid re-typing value
value
You could also use the Range class from apache commons :
Range r = Range.between(1,3); if(r.contains(value)){ }