I need help on Integer work!

X

xxpinoybloodxx

Can anyone help me? This is what I need to do.

Write a program that allows the user to enter any number of integers.
The program should keep track of the largest value, the smallest
value, the number of the values entered, the total of all of the
values. At the end of the input sequence the program should print the
largest and smallest values entered, the number of entries, the total
of the entries, and the average of the entries. The screen should
include the project title and identifiers for each of the output
values.

I keep getting errors like:

Proj3Numb2.java:15: illegal start of expression
input.charAt(0)<='9'))
^
Proj3Numb2.java:26: illegal start of expression
input.charAt(0)<='9'))
^
Proj3Numb2.java:35: ';' expected
}
^
3 errors

----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top