You are viewing a single comment's thread. Return to all comments →
You can add .close() for your scanner reference variable inside the while loop. In this way it will halt the process.
Java End-of-file
You are viewing a single comment's thread. Return to all comments →
You can add .close() for your scanner reference variable inside the while loop. In this way it will halt the process.