Question: 8 . 2 5 LAB: Files & Parallel Arrays ( IN JAVA ) Read in the provided file of accounts.txt . Below is example file

8.25 LAB: Files & Parallel Arrays (IN JAVA)
Read in the provided file of accounts.txt. Below is example file format/content:
Store the values read in from the file into a String arrayList of account numbers and an arraylist of double for balances.
On a loop until the user types EXIT, read in input from the user for an account number to search for. Search the array for the account
number provided and determine if it is valid or invalid.
If found, prompt the user for a payment amount. Update the balance array with the payment input provided. Display the new balance once it
is updated.
Once the user types EXIT, write the accounts and all balances back to the same accounts.txt file separated by spaces.
Be sure to handle all possible exceptions in your code.
Example Input:
87444788120053.1178258772507543227543221120.50 EXIT
Example Output:
8 . 2 5 LAB: Files & Parallel Arrays ( IN JAVA )

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!