The Question

Write a program called Q1.java that prompts for and then reads in 10 integers and prints out the maximum of these numbers.

The output should conform to that in the sample runs of a correct program shown below. Note that, in these sample runs, the % sign is not part of the program output. User input is shown on the same line as the prompt.

Sample Runs

% java Q1
Enter 10 integers ... 3 5 88 -9 4 -99 8 5 21 34
The maximum integer entered is 88.
%
%
% java Q1
Enter 10 integers ... 3 3 3 3 3 3 3 3 3 3
The maximum integer entered is 3.
%

Useful APIs

Here (again) are the common APIs that you may access:

Java 1.5 API
Type API

Submitting Your Work

Here is the command to submit your work (further details regarding the submit command can also be obtained by typing man submit
Once again, you are encouraged to submit regularly. Newer submissions overwrite older ones.

submit 1020 midtermT1 Q1.java