Question: * I'm trying to creation 5 students object by using array and I don't know how to do it? final int STUDENT = 5; //the

* I'm trying to creation 5 students object by using array and I don't know how to do it?

final int STUDENT = 5; //the number of students

Student[] stud = new Student[STUDENT];

//String[] stud = {"student1","student2","student3","student4","student5"};

/*stud[0] = "student1"; stud[1] = "student2"; stud[2] = "student3"; stud[3] = "student4"; stud[4] = "student5";*/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!