How do I call print() from the STudent class? I tried creating Student test = new Student() but that tells me the constructor type cannot be applied to given types.
The error I get in Netbeans is Required String, string, string, string, int, int, int, int. found no arguments actual and form arguments differ in length.
public class Roster {
print_all();
}
public static void print_all(){
testStudents.stream().forEach((w) -> {
Student.print();
});
}
public class Student {
public Student(String id, String firstName, String lastName, String email, int age, int grade01, int grade02, int grade03)
public void print() {
System.out.println("Student ID: " +
getId() + "\t First Name: " +
getFirstName() + "\t Last Name: " +
getLastName() + "\t Age: " +
getAge() + "\t Grades: " +
getGradesArray()
);
}
}