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:
Top level list 2 contains:
Top level list 3 contains:
Wednesday, September 1, 2010
Chunking a List into parts.
Subscribe to: Post Comments (Atom)
I have recently been slacking on content on my blog, between long stressful hours at work and to the wonderful toy that is an iPhone, I have...
I make no claim to be a "computer scientist" or a software "engineer", those titles alone can spark some debate, I regar...
I saw an article (well more of a rant) the other day, by Rob Williams Brain Drain in enterprise Dev . I have to say, I do agree with some o...
This series of posts will be about me getting to grips with JBoss Drools . The reasoning behind it is: SAP bought out my company's curre...
I recently finished 97 Things every programmer should know . Well to be completely honest I did skim over a couple of the 97, but all and al...
Đặt vé máy bay tại Aivivu, tham khảoReplyDelete
giá 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