I have made a BMI calculator from programming by doing, one of the thing i have to do is add categories using if statements. 18.5 to 24.9 normal weight so that would be one of t
Use
if ( bmi > 18.5 && bmi < 24.9)
Unfortunately, Java does not support a 'BETWEEN' operator (like what SQL does e.g).
You could write your own method to check if between,
public static boolean isBetween(int low, int high, int vmi) {
return high > low ? bmi > low && bmi < high : bmi > high && bmi < low;
}