well .. it should be like this :
if(bmi<18.5)System.out.println("Underweight");
else if((bmi>18.5)&&(bmi<24.9))System.out.println("normal");
else if((bmi>25)&&(bmi<29.9))System.out.println("Overweight");
else System.out.println("Obesis"); You make some modifications to suit your needs ... and that should do it, if i understood what you'r asking
