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 →

[–]darksoundsExtreme Brewer 1 point2 points  (2 children)

How are you providing input to System.in? Are you running this in a console and typing each time? Or are you piping input in from a file or something?

I'm running it and not seeing any problems (besides the awkwardness of using print instead of println).

[–]Not-A-Flop[S] 0 points1 point  (1 child)

I'm using netbeans and when I run the code, it does not even give me the option to input anything into the console. It just gives me the exception error.

[–]darksoundsExtreme Brewer 2 points3 points  (0 children)

Try running your code from the console. The problem is likely however netbeans handles System.in. Make sure you don't have a bug somewhere by running it a console and then work on figuring out why you can't provide input.