Re: InputMismatchException
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.
i.e.,
Code:
Scanner myScanner = new Scanner(System.in);
myScanner.useLocale(Locale.US); // for United States-compatible number formatting
Re: InputMismatchException
Thank you that did it. I am a gringo living in Peru.
Re: InputMismatchException
Quote:
Originally Posted by
gnbradford
Thank you that did it. I am a gringo living in Peru.
De nada. Que tengas suerte con su educación.