Question: This assignment will require the construction of a simple database made up of multiple ArrayList objects All but one of the ArrayList objects will contain

 This assignment will require the construction of a simple database madeup of multiple ArrayList objects All but one of the ArrayList objectswill contain string descriptions that are used repeatedly, but stored only once.One ArrayList will contain references to objects of an immutable class, eachof which will contain a record of a consumer complaint. (The consumercomplaint information that will be used is real, having been downloaded from

This assignment will require the construction of a simple database made up of multiple ArrayList objects All but one of the ArrayList objects will contain string descriptions that are used repeatedly, but stored only once. One ArrayList will contain references to objects of an immutable class, each of which will contain a record of a consumer complaint. (The consumer complaint information that will be used is real, having been downloaded from data.gov, but will consist of only a small fraction of the actual information available.) At the start of a run of the program, the ArrayList objects will created, then data will be read from files and placed in the approprate ArrayList objects. The string description information will be read from files of product names, complaint issues, company names and results of the complaint follow up and stored in ArrayList objects specific to each type of description. The complaint file is organized in lines, one line per complaint. Each line of data in the complaint file will be read and placed in an object of the immutable class, which will then be added to the complaint ArrayList. In the description files, each description is on a line by itself After all data from all files is read and stored in the correct ArrayList objects, the program will present a menu to the user. The user will select an option and the program will perform the indicated task. For example, if the user selects hypothetical option 3 where this hypothetical option is "output the names of the companies that have consumer loan complaints"), the program will traverse the ArrayList of complaints and find every instance of a complaint about a consumer loan, then add the company to a new ArrayList, but only if that company isn't already in the new ArrayList. When the traversal of the complaints ArrayList is complete, the names of the companies stored in the new ArrayList can then be output to the user and/or to a file This assignment will require the construction of a simple database made up of multiple ArrayList objects All but one of the ArrayList objects will contain string descriptions that are used repeatedly, but stored only once. One ArrayList will contain references to objects of an immutable class, each of which will contain a record of a consumer complaint. (The consumer complaint information that will be used is real, having been downloaded from data.gov, but will consist of only a small fraction of the actual information available.) At the start of a run of the program, the ArrayList objects will created, then data will be read from files and placed in the approprate ArrayList objects. The string description information will be read from files of product names, complaint issues, company names and results of the complaint follow up and stored in ArrayList objects specific to each type of description. The complaint file is organized in lines, one line per complaint. Each line of data in the complaint file will be read and placed in an object of the immutable class, which will then be added to the complaint ArrayList. In the description files, each description is on a line by itself After all data from all files is read and stored in the correct ArrayList objects, the program will present a menu to the user. The user will select an option and the program will perform the indicated task. For example, if the user selects hypothetical option 3 where this hypothetical option is "output the names of the companies that have consumer loan complaints"), the program will traverse the ArrayList of complaints and find every instance of a complaint about a consumer loan, then add the company to a new ArrayList, but only if that company isn't already in the new ArrayList. When the traversal of the complaints ArrayList is complete, the names of the companies stored in the new ArrayList can then be output to the user and/or to a file

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!