针对以下代码,分析代码中产生的问题和缺陷

public class getScoreAverage
{ public float getAverage( int [] scores )
{ if (scores==null || scores.length==0)
{ throw new NullPointerException();
}
float sum = 0.0F;
int j=scores.length;
for (int i=1; i<j; i++)
{ sum += scores[i];
}
return sum/j;
}
}

public float getAverage( int [] scores )
改为
public float getAverage( int [] scores ) throws Exception

for (int i=l; i<j; 1++) 这句里面 i是等于 1 还是等于 l,后面是 i++,还是 1++,还是 l++ ;你这玩意儿都没编辑好
如果是i=1,i++ :那求和sum少算了第一个元素;