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