java code for BMI