The Scanner class's method is waiting for more input. You need a way to tell it that the input is finished.
One possible solution: End the input with a non-digit like this: 1 2 3 X
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 12 of 12
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |