title: a mismatch exception in java
body: <p>I have a problem with the Salary input, I entered 1500.99 as input, then the compiler tells me that there is a mismatch exception</p>
  
  <pre><code> import java.util.Scanner;
  
   import static java.lang.System.*;
  
   public class input {
  
    public static void main(String[] args){
      Scanner reader=new Scanner(in);
  
      System.out.println("hello world ");
      System.out.println("enter a name ");
      String name=reader.nextLine();
      System.out.println("name: "+name);
      System.out.println("enter the age ");
      int age=reader.nextInt();
      System.out.println("age: "+age);
      System.out.println("enter the salary ");
      double Salary=reader.nextDouble();
      System.out.println("salary "+Salary);
    }
   }
  </code></pre>