Java Automatically create objects

Java Automatically create objects
refer‮tual:ot ‬turi.com
public ArrayList CreateSchool(int numberOfStudent ) {
    ArrayList al = new ArrayList();

    for ( int i=0; i < numberOfStudent; i++) {
        Student student = new Student();
        al.add( student );
    }
    return al;
}
Created Time:2017-09-04 07:32:32  Author:lautturi