View Full Version : Sending an array...?

04-04-2007, 11:54 PM
I was wondering how i would get an array in a different class... for example

assume projects is an array

ListOfStudents[counter] = new Undergrad(projects);

public UnderGrad(projects)

how would i get that in the Undergrad part? because if it was an int i would need to put
public Undergrad(int projects)
but i dont knwo what to do for an array.
any help?

04-05-2007, 11:00 AM
Depends on the type of the array. Assuming projects is an array of Project instances, you'd do:
public UnderGrad(Project[] projects) {

04-05-2007, 05:07 PM
That got it. thanks!!!