required: double [] found: no arguments

前端 未结 4 897
自闭症患者
自闭症患者 2021-01-14 20:38

Code:

 ArrayList  marks = new ArrayList();

 String output = \"Class average:\" + calculateAverage() + \"\\n\" + \"Maximum mark:\" +  
 calcu         


        
4条回答
  •  别那么骄傲
    2021-01-14 20:53

    private double calculateAverage(double [] marks) is the method declaration, so when its called it must have and argument of double array

    eg:

    calculateAverage(double_value_array);

提交回复
热议问题