2/21/2020 5:31:55 PM
You need to print
System.out.println(s.student_id ); System.out.println(s.student_marks)
You have to override the toString() method and then call the toString() on the student object.
Share your code please.
Can you share your so that someone can see what you have done and correct the mistakes
This is how you should do it in order to print objects of a class.
GET THE FREE APP
Learn Playing. Play Learning
Send us a message