Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有magicMethod这样的工作:
magicMethod
List<E> resultList = magicMethod((Iterator<E>)inputIterator);
注意:resultList应该是可变的。
resultList
您可以使用Lists#newArrayList(Iterator)。