InputMismatchException

前端 未结 1 651
慢半拍i
慢半拍i 2020-12-21 19:35

I would like to ask why I am getting an InputMismathException?

I have declared a variable of type double and when I assign it a point valu

相关标签:
1条回答
  • 2020-12-21 20:06

    Problem in locale

    Locale.setDefault(Locale.US);
    Scanner input = new Scanner(System.in);
    

    US decimal delimiter "."(78.12) and not ","(78,12)

    0 讨论(0)
提交回复
热议问题