[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swarm-Support] ListImpl help
From: |
Diego Corredor |
Subject: |
Re: [Swarm-Support] ListImpl help |
Date: |
Tue, 28 Nov 2006 21:02:02 -0500 |
Hi Marcus,
I have already been checking the member number before starting the
removal. I am using a conditional statement in order to break the loop
if the list is empty. The general structure is as follows:
for ( it = 0; it < numberOfAgents; it++)
{
if ( consumerList.getCount() == 0 )
{
break;
}
else
{
Trade and then Perform Removal process....
}
}
Could it be the break command I am using? Is there any alternative to
end the loop?
Thanks,
DC