How to read values from custom txt in Java

I want to read all values from the txt file in Java and assign it to Student object before adding it to List<Student> but I have custom txt file

Here is the custom file shown below

Student1
Name, Surname, Age
Student2
Name, Surname, Age
....

How can I do that?
Was this page helpful?