SyntaxFix
Write A Post
Hire A Developer
Questions
You have to define public String toString() method in your Student class. For example:
public String toString()
Student
public String toString() { return "Student: " + studentName + ", " + studentNo; }