InputMismatchException

前端 未结 1 660
慢半拍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)
提交回复
热议问题