package edu.oakland.production;

import edu.oakland.helper.Student;

public class SIS {

	private Student[] students;
	private int numStudents = 0;

	public SIS() {
		students = new Student[5];
	}

	public SIS(int maximumStudents) {
		students = new Student[maximumStudents];
	}

	public void addStudent(Student student) {
		this.students[numStudents] = student;
		this.numStudents++;
	}

	public Student getStudent(int GID) {
		for (Student s : students) {
			if (s.getGrizzlyID() == GID) {
				return s;
			}
		}

		return null;
	}
}

@@ -147,137 +147,455 @@
 ;%0A%0A%09
-public SIS() %7B%0A%09%09students = new Student%5B5%5D;%0A%09%7D%0A%0A%09public SIS(int maximumStudents) %7B%0A%09%09students = new Student%5BmaximumStudents%5D;%0A%09%7D%0A
+/**%0A%09 * Create a new SIS with the default capacity of 5 students.%0A%09 */%0A%09public SIS() %7B%0A%09%09students = new Student%5B5%5D;%0A%09%7D%0A%0A%09/**%0A%09 * Create a new SIS with the specified capacity of students.%0A%09 *%0A%09 * @param maximumStudents The maximum number of students that will be stored.%0A%09 */%0A%09public SIS(int maximumStudents) %7B%0A%09%09students = new Student%5BmaximumStudents%5D;%0A%09%7D%0A%0A%09/**%0A%09 * Add a student to the SIS.%0A%09 *%0A%09 * @param student The %7B@link Student%7D to add.%0A%09 */
 %0A%09pu
@@ -700,16 +700,108 @@
 ++;%0A%09%7D%0A%0A
+%09/**%0A%09 * Retrieve a student from the SIS.%0A%09 *%0A%09 * @param GID The student's Grizzly ID.%0A%09 */%0A
 %09public 

Add comments