int[] arr = {1,2,3,4,5,6,7,8,9,10}ArrayList list = new ArrayList();int tmpArr[]=null;for(int i=0;i if(i % 3==0){ tmpArr = new int[3]; list.add(tmpArr); } tmpArr[i%3]=arr[i];}