Пройдемся по листу

Mar 04, 2015 16:58

Java:

Iterator iterator = batch.iterator();
while (iterator.hasNext()) {
message = iterator.next();
    iterator.remove();
}
return message;

(batch - List)
Previous post Next post
Up