First, you should not be calling close on the Scanner within a loop which reads from said Scanner. Its best practice to call close within a finally block, so all exceptions that may occur can be...