toKeep.addElement(sprite);
i.remove();
    public void removeAttacksFor(int entityId) {        // or rather, only keep sprites NOT for that entity        Vector toKeep = new Vector(attackSprites.size());        for (Iterator i = attackSprites.iterator(); i.hasNext();) {            AttackSprite sprite = (AttackSprite)i.next();            if (sprite.getEntityId() != entityId) {                toKeep.addElement(sprite);            }        }        this.attackSprites = toKeep;    }