@ -552,8 +552,11 @@ public class Administration {
return false;
}
public void viewGradesFromStudent(String studentId) {
public void viewGradesFromStudent() {
System.out.print("Enter Student ID to view grades: ");
String studentId = scanner.next();
Student student = findStudentById(studentId);
if (student != null) {
student.printGrades();
} else {
@ -96,9 +96,7 @@ public class Main {
break;
case 10:
// View Grades from Student
administration.viewGradesFromStudent(studentId);
administration.viewGradesFromStudent();
case 11: