java between two numbers ? code example Example: variable between two numbers java if (angle >= 90 && angle <= 180) { // do action }