Finding the minimum
n/**
n * The lowest final exam grades of the
n * specified Students.
n * require:
n *   students.size() > 0
n */
npublic int  minFinalExam (StudentList  students){
n  int i;
n  int low;
n  low = students.get(0).finalExam();
n  i=1;
n  while ( i < students.size()){
n    if (students.get(i).finalExam()<low)
n      low=students.get(i).finalExam();
n    i = i+1;
n  }
n}