View Single Post
  #2 (permalink)  
Old 11-15-2007, 08:30 PM
ShoeNinja's Avatar
ShoeNinja ShoeNinja is offline
Senior Member
 
Join Date: Oct 2007
Posts: 123
ShoeNinja is on a distinguished road
Send a message via AIM to ShoeNinja
Since the array is made up of Account objects, you will need to access the data through methods in that class. Something like getBalance, getTotal..... After you have that method, it's pretty straightforward.

Code:
//assuming that the getBalance method returns an int int total = accs[0].getBalance() + accs[1].getBalance();
Reply With Quote