Re: Could you pls explain this?
Saturday, August 24, 2002 10:19 AM
You would get an unpredicable result (depends on your OS and some random events.) If class A really should be clearing out the vector, you should use the synchronized keyword to get a lock on the vector before printing/deleting from it.
Re: <font color=red>Could you pls explain this?</font>
Saturday, August 24, 2002 03:23 AM
since i dont know what class B does, i can not explain what is going to happen.
but i would hint you this:
put the remove-method within class-B's run-method (after having printed).
dont forget to "start()" class B.