「lowestScore」メソッドを作成するときにエラーが発生したと思われます (「largestScore」メソッドは一貫して正しい値 (配列からの最高スコア) を返すため、多かれ少なかれ否定しました)。しかし、何らかの理由で、lowestScore メソッドは配列からでもなく、配列の最初の要素または任意の数値を返すだけです。
public static double highestScore(double[] scores)
{
double max = scores[0];
for (int i=0; i < scores.length; i++) {
if (scores[i] > max) {
max = scores[i];
}
}
return max;
}
public static double lowestScore(double[] scores) //possible problem some where in
{ //here?
double min = scores[0];
for (int i=0; i > scores.length; i++) {
if (scores[i] < min) {
min = scores[i];
}
}
return min;
}