Create an array of objects and initialize them differently : When creating a array of objects of a class and the number of objects in the array is only determined at runtime, how can I initialize each object in the array differently?

For example, `SimpleJob` is a class. I want to create an array of objects of `SimpleJob`, and initialize them differently 

            SimpleJob[] jobs = new SimpleJob[nbJobs]; 
            for (int i = 1; i <= nbJobs; ++i)
            {
                jobs[i] = new SimpleJob(i, false);
            }

Is it a good way?

Thanks.