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