•//
lines 211-214 in report method
•for
(int i = 0; i < NUM_ACCOUNTS; i++) {
• terminal.println( i
+ “\t” + accountList[i].getBalance() + … )
•}
•accountList[i] is (a reference to)
the Object at position i.
•send a getBalance message to each account in the
Bank in succession
•prints 0 0 x 1 100
x
2
200 x
•