how to write a number between two numbers in java code example Example: variable between two numbers java if (angle >= 90 && angle <= 180) { // do action }