public void displayResults
{
for(int i = 0; i < arrayLength; i++)
{
System.out.printf("Value %d = %.6f\n", i, list[i]);
}
System.out.printf("Sum of all values = %0.6f\n", sum);
System.out.printf("Average of all values = %0.6f\n", average);
System.out.printf("Largest value = %0.6f\n", largest);
System.out.printf("Smallest value = %0.6f\n", smallest);
}
I am getting the good old error: '(' expected
at where the { should be, I really don’t see whats wrong with what I have. Been staring at this same error for almost a hour. really hoping a new set of eyes can see the issue.
public void displayResults
==> {
for(int i = 0; i < arrayLength; i++)
{
You need to add the parameter list parentheses even if you have no parameters.