Пройдемся по листу
Date: 03/04/15
(Code WTF) Keywords: java
Java:
Iterator iterator = batch.iterator();
while (iterator.hasNext()) {
message = iterator.next();
iterator.remove();
}
return message;
(batch - List)
Source: http://code-wtf.livejournal.com/221381.html
|