Simple BMI calculator in Java