Question: 2. You will be given a fileName. That file contains the following lines in this format i.e. Comma separated values with ID, name, email. You

 2. You will be given a fileName. That file contains the

2. You will be given a fileName. That file contains the following lines in this format i.e. Comma separated values with ID, name, email. You need to read the lines from this file and insert it into a list of students (List list). See below code snippet, and complete the function. class Student int roll; String name; String email; } a public void getStudents List(String fileName){ List list = new ArrayList(); // Write code to read line by line from "FileName" and create a list of Student objects. Return that list. Each line will have comma separated values, containing ID, name and email as shown above. return list; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!