steps.removeLast(); steps.addLast(s);
steps.set(steps.size() - 1, s);
    public void replaceLastExpression(Expression s) {        if (steps.size() == 0)            return;        else {            steps.removeLast();            steps.addLast(s);        }    }