BMI calculator in Java