Based on the error happening at the for loop, I suspect that your checkingAcct
is null
. Make sure you are using the constructor to initialize:
CheckingAccount checkingAcct = new CheckingAccount();
.
If you're already doing that, make sure that it's not being assigned to null anywhere else in your code.