public static double MaxScore(List<Student> Students) {
double max = 0;
for (Student s : Students) {
if (max < s.getScore())
max = s.getScore();
}
return max;
}
public static double MinScore(List<Student> Students) {
double min = 100;
for (Student s : Students) {
if (min > s.getScore())
min = s.getScore();
}
return min;
}
public static double AvgScore(List<Student> Students) {
double ss = 0;
for (Student s : Students) {
ss = ss + s.getScore();