public boolean isRight() {
if(xposition == ( (oposition-1) && (oposition != (12 && 8 && 4))) {
return true;
} else {
return false;
}
}
“xposition” and “oposition” are assigned values during the runtime of a program.
The error is in (12 && 8 && 4) I need to make sure that the value of “oposition” is not equal to 12 and 8 and 4.
I don’t know what is wrong here. Please help
Maybe right logic is:
If you have a lot of numbers: