Example:
int value = someValue; if (value == (valueOne OR valueTwo OR valueThree)){ //do code }
I would like to avoid re-typing value
value
This would do it in one check:
int value = someValue; if(Arrays.asList(valueOne, valueTwo, valueThree).contains(someValue)){ // do the things }