Leon Rosenberg wrote:

You should consider using synchronized lists :-) (for example Vector).

Does not help :-)  If you do not put sync. brackets around

   Check some property (e. g., size());
   Do something according to the property value

you lose, because the property may have changed already when the second line is executed.

You need the sync. brackets to preserve the state between checking some property and acting on the result.

Regards,

Oliver Schoett


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to