Vector temp = pathSprites; pathSprites = new Vector(); for (Iterator i = temp.iterator(); i.hasNext();) { final Sprite sprite = (Sprite)i.next();
Vector<StepSprite> temp = pathSprites; pathSprites = new Vector<StepSprite>(); for (Sprite sprite: temp) {
    public void clearMovementData() {        Vector temp = pathSprites;        pathSprites = new Vector();        for (Iterator i = temp.iterator(); i.hasNext();) {            final Sprite sprite = (Sprite)i.next();            repaintBounds(sprite.getBounds());        }    }