This sounds like an issue with the locale used by your Scanner object. Consider changing this by calling .useLocale(...) on your Scanner object, using a locale that is more in line with your desired numeric format.
Scanner myScanner = new Scanner(System.in);
myScanner.useLocale(Locale.US); // for United States-compatible number formatting
Thank you that did it. I am a gringo living in Peru.
De nada. Que tengas suerte con su educación.
Originally Posted by gnbradford