
780 CHAPTER 11 Exceptions and Input/Output Operations
■
Using a text editor, modify the file transactions.txt by entering a
positive amount to all transactions. Change the balanceCheckBook
method so that it determines which transactions are positive and
which are negative. Run the program again and check that your
code still gives the correct result.
Troubleshooting
If your method implementation does not animate or animates incorrectly,
check these items:
■
Verify that you coded the priming read correctly.
■
Verify that you coded the call to animate at the proper time.
■
Verify that you coded the condition for exiting the loop correctly.
■
Verify that you coded ...