A List from Iterator

Rémi Forax forax at univ-mlv.fr
Fri Aug 29 15:03:42 UTC 2014


ArrayList<String> list = ...
iterator.forEachRemaining(list::add);

Rémi

On 29 août 2014 00:22:11 UTC+02:00, Pavel Rappo <pavel.rappo at oracle.com> wrote:
>> If we were to provide a Collections util it would to wrap Enumeration
>as an Iterator but that's it.
>
>Mike, that's what I'm talking about. It's just for convenience.
>
>-Pavel

-- 
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.



More information about the core-libs-dev mailing list