Hello All,
I would like to create a Student class as follows:
class Student
{
String name;
int age;
int studentNum;
String instructor;
}
My question is how would I read information from a text file into an array of class Students?
The file is as follows:
Sue Jones, 19, 897680, Mrs. Smith
John Smith, 21, 909897, Mr. Jones...
Afterwards I would like to be able to input the studentNum and get the other information about the student as well.
Any help would be great.
Thank you,