Answer:
Answered below
Step-by-step explanation:
//Implementation of the addStudent method
public void addStudent(String name, int rollNo){
Student newStudent = new Student();
newStudent.name = name;
newStudent.rollNo = rollNo;
student.add(newStudent);
}
//Implementation of the getAllStudents method
public Student[] getAllStudents(){
return students;
}