Recently, when I was working on a project for mass mailing, I had to send a certain amount of addresses in a dark box, but the total number of mails sent each time was not fixed. Finally, I took the time to create a List set to convert a certain number of arrays, sharing Out, I hope everyone will give optimization and I think it is too cool to get the Java code: public List <Object []> listToArray (List <Object> list, int bccSize) {List <Object []> list2 = new ArrayList <Object []> (); Object arr [] = null; for (int j = 1, len = list. size () + 1; j <len; j ++) {if (j = 1) {if (len> bccSize) {// initialize array size arr = new Object [bccSize];} else {arr = new Object [len-1];} arr [j-(bccSize * list2.size ()) -1] = list. get (J-1); // assign the array if (j % bccSize = 0) {list2.add (arr ); // if (len-j-1> bccSize) {arr = new Object [bccSize]; // do not allow null values in the array to create the size of the last array (you can remove it if all values are required)} else {arr = new Object [len-(bccSize * list2.size ()) -1] ;}} else if (j = len-1) {list2.add (arr); // The Last array may not have a specified size} return list2 ;}