Code:
ArrayList marks = new ArrayList(); String output = \"Class average:\" + calculateAverage() + \"\\n\" + \"Maximum mark:\" + calcu
You're calling the method calculateAverage this way: calculateAverage(), without any argument. But the method is declared this way:
calculateAverage()
private double calculateAverage(double [] marks)
It thus needs one argument of type double[], but you don't pass anything.
double[]