Read the attached text file into your program.

The first row is headers separated by a comma and the remaining rows are data separated by a comma.

Your program will then write separate text files for each class and write all the students data who are taking that class into the file.

Student Name,Class,Rank,Semester,GPA
John Fank,CSCI 150,Sophmore,Fall 2020,4
Jeff Med,CSCI 150,Sophmore,Fall 2020,3
Nancy Frank,CSCI 150,Sophmore,Fall 2020,2
Randy Mark,CSCI 140,Sophmore,Fall 2020,3
Mary Beth,CSCI 140,Sophmore,Fall 2020,4
Nina Fred,CSCI 140,Sophmore,Fall 2020,3
Fred Frank,CSCI 270,Sophmore,Fall 2020,2
Sean Kelly,CSCI 270,Sophmore,Fall 2020,4
Tom Ned,CSCI 270,Sophmore,Fall 2020,3

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

public class Students {

public static boolean find(ArrayList<String> arr, String elem) {
for(int i = 0; i < arr.size(); i++)
return true;
return false;

public static void main(String[] args) {
try(BufferedReader in = new BufferedReader(new FileReader("students.txt"))) {
    String str;
    ArrayList<String> data = new ArrayList<String>();
    String[] current;
    ArrayList<String> classes = new ArrayList<String>();
    while ((str = in.readLine()) != null) {...
$8.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Computer Science - Other Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats