Objectives:
1. To gain experience with string objects.
2. To gain ArrayList
3. To gain experience with generic algorithms.
4. To gain experience with reading from a file and writing to a file.
Documentation:
1. Explain the purpose of the program as detail as possible
2. Develop a solution for the problem and mention algorithms to be used
3. List data structures to be used in solution.
4. Give a description of how to use the program and expected input/output
5. Explain the purpose of each class you develop in the program.
Programming:
6. For each method, give the pre and post conditions and invariant, if any
7. Program execution according to the requirements given
8. Naming of program as required
9. Print out of source code
Description of program:
You are to write a program that will prompt the user for an input file name to read from. The Input file will consist of records made up of first name, last name and an account balance of individuals and store the individuals in an ArrayList. Each line in the file would be made up of one record starting with the last name, first name and account balance. Each token is separated by ONE space. The individuals names' must be inserted in sorted order into the list - sort by last name and then first name.
The program must be named "test_Array_list.java" .
10. Display the contents from the list to the screen and into an output file - "output.txt".
11. Count the amount of individuals in the list and display the value on the screen and the output file.DO NOT USE ANY LIBRARY FUNCTION TO COUNT. YOU MUST WRITE YOUR OWN COUNTING FUNCTION.