Example:
int value = someValue; if (value == (valueOne OR valueTwo OR valueThree)){ //do code }
I would like to avoid re-typing value
value
You might be better off using a HashSet
HashSet
Set myset = new HashSet(); //Add values to your set if(myset.contains(myvalue)); { //... Do what you want.
This allows your algorithm to be flexible and not have to manually code in new checks when you want to check against a new value.