posted 15 years ago
I use the scanner class for input a bunch of times, and it works for the most part, except in this one particular section where I need to use it.
Apparently the JavaDoc for Scanner class isn't too useful, but does anyone have any idea what the issue is or how to fix it?
I'll show the expected output and the actual output below the code.
the problem appears in these lines:
which appear in the context of my larger program here:
expected:
actual: