I have a fairly simple problem. I am getting real-number input like6.03, but that gives me errors. If I change it to 6,03, it\'s ok. I, however, can\'t
6.03
6,03
Scanner can be provided with Locale to use, you need to specify Locale that uses . as decimal separator:
Scanner
Locale
.
Scanner sc = new Scanner(System.in).useLocale(Locale.ENGLISH);