[Solved] Student Info System


In the public static String Calculate() function, you need to return return sgrade; and currently, you are not returning any object, but the method calls for the return of a string.

Also, remove String sgrade = d.readLine(); from line 199 (in the addData function). This is causing problems, because you are defining a new variable with the same name as a class variable, and not specifying which one to use on the next few lines.

When I fix this, here is the output:

<<<– MAIN MENU –>>>

[1] Add [2] Edit [3] Delete [4] Search [5] View [6] Exit

Select a menu: 1

<<<– ADD DATA –>>>

Student Matric Number: 1

Student Name: Jake Chasan

Course Work: 100

Final Exam: 100 Grade: A+

<<<– VIEW DATA –>>>

Matric Number: 1 Name: JAKE Course Work: 100
Final Exam: 100 Grade: A+

7

solved Student Info System