import [Link].
Scanner;
public class StudentUtil {
public static Student[] getInfo() {
[Link]("How many students do you want to include in?");
int count = new Scanner([Link]).nextInt();
Student[] students = new Student[count];
for(int i=0;i<count;i++) {
students[i] = studentMethod();
}
return students;
}
public static void chapEt(Student[] students) {
for(int i=0;i< [Link];i++) {
[Link](students[i].name);
[Link](students[i].surname);
[Link](students[i].age);
[Link]("----------");
}
}
public static Student studentMethod() {
Student a = new Student();
[Link]("Enter a name");
[Link] = new Scanner([Link]).nextLine();
[Link]("Enter a surname");
[Link] = new Scanner([Link]).nextLine();
[Link]("Enter age");
[Link] = new Scanner([Link]).nextInt();
return a;
}
}