Below is the example of the code snippet which needs the help
Example:
[1,2,3,4,5]
1
for(int i=0;irow = new ArrayList(); int k=0; while(k < chunksize){ chunk.add(list.get(i)); i++; k++; } System.out.println(chunk); nestedlist.add(chunk); }
where list is a 1 dimension array and chunk is a nested array of size chunksize
chunksize