title: InputMismatchException using Scanner#nextDouble with valid values
body: <p>Here is my code for my scanner:</p>
  
  <pre><code>import java.util.Scanner;
  public class TryDouble {
  
      public static void main(String  [] args){
          Scanner jin = new Scanner(System.in);
          double a = jin.nextDouble();
          double b = jin.nextDouble();
          double c = jin.nextDouble();
          System.out.println(a + b + c);
      }
  }
  </code></pre>
  
  <p>For input: <strong>0.2 0.5 0.9</strong>, I got:</p>
  
  <pre><code>Exception in thread "main" java.util.InputMismatchException
  at java.util.Scanner.throwFor(Unknown Source)
  at java.util.Scanner.next(Unknown Source)
  at java.util.Scanner.nextDouble(Unknown Source)
  at TryDouble.main(TryDouble.java:6)
  </code></pre>
  
  <p>What can I do to remove that error?</p>