public class TimeToLearn
{
private Student[] students = new Student[30];

public TimeToLearn(Students[] students)
{
this.students = students;
}

public void goToClass()
{
for(int i =0; i < students.length; i++)
{
students[i].loveClass();
students[i].learnEverything();
students[i].becomeEducated();
}
}
}