/** A class to organize our students */
public class StudentManager {
  /** Array of Students */
  private Student [] sList;
  /** number of students currently in our array */
  private int count;
  /** create a student manager with a Student array of size len */
  public StudentManager(int len) {
    sList = new Student[len];
    count = 0;
  }
  /** Add a student to the array */
  public int addStudent(Student s) {
    if (count < sList.length) {
      sList[count] = s;
      count ++;
      return count - 1;
    }
    return -1;
  }
  /** Print student information for students in the array.
   * Notice which toString() method gets called, even though
   * these object are of type Student in the array.
   */
  public void printStudents() {
    for (int i = 0; i < count; i++) {
      System.out.println(sList[i].toString());
    }
  }
  /** get an array containing the GPAs for the students. */
  // to do next class
//  public static  int [] getGpa(Student [] s) {
//  }
  
}
