Yup, that should be possible.
One thing I would caution re adding is the fact that you must watch for
integer overflow. If your file is really big (say you have a file with
500 accounts) and the amounts you deal with are also big, then you might
want to watch the totals carefully.
Welcome to Javaranch.
Man!!! Your beginning balance is in six digits, huh!
Wonder why you are writing programs
- m