I have traced the source code and find that if I use the method instances.delete(0),
the order of the instances wil be changed.
The instance.delete(index) method just call the System.arraycopy(Object src, int
srcPos,Object dest, int destPos, int ength) method.
But now I have to do is delete some specific index of Instance from Instances.
For instance, I want to delete instance(7),instance(8),instance(9), instance(34)....etc.
It is impossible for doing this by instance.delete(index) method because the index order
will be changed after deleting.
Is there any good advice to do this?
Thank you very much!
Show replies by date