Code:
ArrayList marks = new ArrayList(); String output = \"Class average:\" + calculateAverage() + \"\\n\" + \"Maximum mark:\" + calcu
You can call it this way:
double d[] = {1, 2, 3}; double ret = calculateAverage(d); System.out.println(ret);