Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Iterator to list (Java)

List<Element> list = new ArrayList<>();
iterator.forEachRemaining(list::add);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Iterator #list
ADD COMMENT
Topic
Name
2+9 =