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;
}
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;
}