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.
Brandon McCombs - 08 Mar 2007 02:13 GMT
> Can anyone help me? This is what I need to do.
>
[quoted text clipped - 22 lines]
> ----jGRASP wedge2: exit code for process is 1.
> ----jGRASP: operation complete.
Maybe you should post your homework for us to compare with the error?
Given the error message in front of you I'd check how many parentheses
you have and make you sure have semicolons in the proper place. Have you
done that yet?