A way to convert Iterator to mutable list in Java using `apache-commons`,` guava` or some other popular library

Is there a magicMethod working like this:

 List<E> resultList = magicMethod((Iterator<E>)inputIterator); 

NB: resultList needs to be changed.

+4
source share
1 answer
+11
source

Source: https://habr.com/ru/post/1469473/


All Articles