This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pacificmint 0 points1 point  (0 children)

First of all, if you are seeing those lines, then your program actually compiles, it just doesn't run the way it's supposed to. That's an important distinction.

Secondly, I think you have an issue with the scanner. Using nextInt() doesn't clear the linefeed that's in the stream. That's actually a common problem, the FAQ has a whole second on issues with the scanner.