Chunking a List into parts.
Needed to batch up the contents of a list into groups of 4 today. Spent a little more time than I would have liked on it, but I think it's a pretty neat bit of code now, and I actually got to use java.util.concurrent.CopyOnWriteArrayList for the first time.
The result of running this:
Top level list 1 contains:
1
2
3
4
Top level list 2 contains:
5
6
7
8
Top level list 3 contains:
9
The result of running this:
Top level list 1 contains:
1
2
3
4
Top level list 2 contains:
5
6
7
8
Top level list 3 contains:
9
Đặt vé máy bay tại Aivivu, tham khảo
ReplyDeletegiá vé máy bay đi Mỹ khứ hồi
lịch bay mỹ về việt nam
tình hình vé máy bay từ nhật về việt nam
vé máy bay từ đức về việt nam giá rẻ
vé máy bay từ Toronto về việt nam
mua vé máy bay từ hàn quốc về việt nam
Chi phí cho chuyên gia nước ngoài