Question: 8 . 2 5 LAB: Files & Parallel Arrays ( IN JAVA ) Read in the provided file of accounts.txt . Below is example file
LAB: Files & Parallel Arrays IN JAVA
Read in the provided file of accounts.txt Below is example file formatcontent:
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:
EXIT
Example Output:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
