Is there any magicMethod
working like this:
List<E> resultList = magicMethod((Iterator<E>)inputIterator);
NB: resultList
should be mutable.
You can use Lists#newArrayList(Iterator).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With