我无法弄清楚为什么这不起作用它期待一个 . 类错误?任何帮助将不胜感激谢谢!
public static int displayPercentageAndGrade(int assignMax, int assignScoreArray, int labMax, int labScoreArray, int quizMax,int quizScoreArray,int examScoreArray,int finalExam)
{ if (numArray.length%2)
double median = ((double)assignScoreArray[assignScoreArray.length/2] + (double)assignScoreArray[assignScoreArray.length/2+1])/2;
else
double median = (double) numArray[numArray.length/2];
double assignmentsPercent = (median / (numAssignments*assignMax)*100);
出现错误... CSCD210Lab8Functions.java:109: '.class' 预期双中位数 = ((double)assignScoreArray[assignScoreArray.length/2] + (double)assignScoreArray[assignScoreArray.length/2+1])/2 ;
感谢您真正坚持这一点的任何帮助