Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically split ArrayList into separate smaller ArrayLists

Status
Not open for further replies.

benjatado

Programmer
May 15, 2005
52
0
0
US
Hi,

I am trying to figure this brain-bender out...

How to split an ArrayList of > 2500 items into seperate ArrayLists of <= 2500 items.

The size of the initial ArrayList may be anywhere from 2501 to 40,000 items. But i need to dynamically loop through and separate the list into <=2500 item ArrayLists and then pass these lists into a parameter for query.

Any help here would be greatly appreciated.

Thanks,

B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top