On 24/04/2013 18:24, Akhil Arora wrote:

Good question. forEachRemaining docs state -

Implementation Requirements:

    The default implementation behaves as if:

    while (hasNext())
             action.accept(next());

so a subsequent remove() should remove the last element.
That specifies how the default implementation behaves rather than the general contract so I think it would be good to re-look at when there is time.

-Alan

Reply via email to