Question: Does anyone know how to correct this error? I can attach the rest of the source code if needed. private static void displayStudent Details(Student[] studArr,

Does anyone know how to correct this error? I can attach the rest of the source code if needed.
private static void displayStudent Details(Student[] studArr, int ID) { for (Student stud : studArr) { if (student.getStudentID() == ID) System.out.println(stud.toString(); } } } I II 10 G Q15.java E Kinter Assignme... & Kinter Assignme... 6. Student.java G Kinter A ages GRASP Messages Run I/O Interactions StudentMain.java:102: error: cannot find symbol if (student.getStudentID) ID) symbol: variable student location : class StudentMain
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
