title: InputMismatchException when trying to read 32.5 with Scanner.nextDouble()
body: <p>How do I use tryparce in Java to solve the problems below? 
  Code exampe is helpful.</p>
  
  <p><a href="https://i.stack.imgur.com/c6FYW.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p><a href="https://i.stack.imgur.com/c6FYW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c6FYW.png" alt="enter image description here"></a>    </p>
  
  <pre><code>import java.util.Scanner;
  
  class BasicCalculator {
      public static void main(String args[]) {
          Scanner input = new Scanner(System.in);
          double fnum, snum, answer; // firstnumber, 2nd number, answer
          System.out.println("Enter first number: ");
          fnum = input.nextDouble();
          System.out.println("Enter 2nd number: ");
          snum = input.nextDouble();
  
          answer = fnum + snum;
          System.out.println(answer);
      }
  }
  </code></pre>
  
  <p>        </p>
  
  <pre><code>Enter first number: 
  32.5
  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 basicCalculator.BasicCalculator.main(BasicCalculator.java:8)
  </code></pre>