Question: A constructor that takes a filename as a String for a parameter. This will be a CSV file where each line is in the format

A constructor that takes a filename as a String for a parameter. This will be a CSV file where each line is in the format "person1,person2,amount" meaning the person1 owes person2 the amount of dollars. All dollar values will be integers (Whole dollar amounts only). If a line is "Paul,Jesse,50" then Paul owes Jesse $50. The constructor will read this file and store all the debt information in instance variables. All CSV files should be in a directory named dataA constructor that takes a filename as a String for a parameter. This will be a CSV file where each line is in the format "person1,person2,amount" meaning the person1 owes person2 the amount of dollars. All dollar values will be integers (Whole dollar amounts only). If a line is "Paul,Jesse,50" then Paul owes Jesse $50. The constructor will read this file and store all the debt information in instance variables. All CSV files should be in a directory named data

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 Programming Questions!