I am trying to create a simple program thats reads banking information from a text file. The text file is layout out line by line. I know that there is definitley 14 lines for each customer but the amount of accounts the customer has is dependant on the 14th line of customer information, and then the amount of transactions a customer has is dependent on the 7th line (or 21st line in the text file) of accounts.
Attached is the text file and another text file explaining how its layed out.
I have been able to read upto the number of accounts a customer has but after this for example a customer could have 2 accounts with 4 transactions each or 1 account with 1 transaction.
What i would like to know is how i would read this information into the program. Would it be just one large arraylist or will i need 3 separate arraylists for Customer, accounts and transactions so i can edit and delete records.