My program creates an arraylist of 5000 to 60000 records depending on time of day. I want to split it into as many arraylists as possible that each arraylist will have 1000 records. I looked at many examples online and tried a few things but I ran into strange problems. Can you please show me an example of this?
Regards!
Here’s how we use it (assuming emails an a large ArrayList of email addresses:
where emailBatch would iterate over the collection like this: