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:
You could also put your values in a file e.g. input.txt and do:
java Test < input.txt