I\'m working on an JAVA assignment should process multiple lines of input. The instructions read \"Input is read from stdin.\"
An example of sample input is given:
To stop the input, you could either prompt the user to enter quit to exit, and then test for the presence of that String in the input, exiting the loop when found, or you could use a counter in the loop, exiting the loop when the maximum iterations have been reached. The break
statement will get you out of the loop.