return value

i need to return the value to 0 after it has collected any clues

publicint collectRevenues()

{

int total = 0;

for (Account a: accounts)

{

total += a.collectRevenue();

}

return total;

}

[519 byte] By [gold_eyea] at [2007-11-26 12:21:37]
# 1
It will reset each time the method is called. You dont need to worry about it.
CaptainMorgan08a at 2007-7-7 15:13:38 > top of Java-index,Archived Forums,Socket Programming...