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
Get step-by-step solutions from verified subject matter experts
