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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!