Exception in thread "main" java.util.InputMismatchException "double" input error -


First of all, I have read many threads about this error, but no one solves my problem.

Here is my code:

  import java.util.Scanner; Public classroom programa1 {public static zero main (string [] args) {scanner s = new scanner (System.in); Double strana_a, strana_b, strana_c; Strana_a = s.nextDouble (); // strana_b = s.nextDouble (); // strana_c = s.nextDouble (); Println (strana_a); S.close (); For example, when I type 8.0, I see this error, what am I doing?  

8,5 , and do not 8.5 ), or use the appropriate locale for the point scanner Initialize to, such as:

  scanner scanner = new scanner (system.इन) .USLokel (local.US);  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -