title: BMI calcuation in Java
body: <p>I have been new to Java. Today, I am doing project on java on BMI calculation.</p>
  
  <p>My code so far is:</p>
  
  <pre><code>package extra_programs;
  import java.io.*;
  
  
  public class bmiCalculation {
  
      public static void main(String[] args) {
          // TODO Auto-generated method stub
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            System.out.println("Enter your weight in kgs");
            int  wt=Integer.parseInt( reader.readLine());
            System.out.println("Enter your weight in cms");
            double height=Double.parseDouble(reader.readLine());
            height=height/100;
            double bmi=wt/(height*height);
  
            if(bmi&lt;18.5){
                System.out.println("You are underweight");
            }
            else if(bmi&gt;=18.5 &amp;&amp; bmi&lt;25){
                System.out.println("You are The right weight");
            }
            else if(bmi&gt;=25 &amp;&amp; bmi&lt;30){
                System.out.println("You are overweight,Plz start jogging");
            }
            else if(bmi&gt;=30){
                System.out.println("You are obese,Plz start jogging and tryt to reduce weight.");
            }
            else{
                System.out.println("Not a valid bmi");
            }
  
  
  
      }
  
  }
  </code></pre>
  
  <p>Whenever I compline the program, error pops up as:</p>
  
  <pre><code>Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
      Unhandled exception type IOException
      Unhandled exception type IOException
  
      at extra_programs.bmiCalculation.main(bmiCalculation.java:13)
  </code></pre>
  
  <p>Please help me how to solve this problem.</p>