I want to add the course to one index, but it adds it to all of the indexes.
public void addCourse(Course newCourse)
{
for (int index = 0; index < courses.length; index++)
{
courses[index] = newCourse;
}
}