/**
* Created with IntelliJ IDEA.
*User: dell
* Date: 13-3-5
* Time: 8:38 pm
* To change this template use File | Settings | File Templates.
*/
public class Group {
public static void main(String[] args)
{
int[] i ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18};
int len = i.length;
int count = len/5;
//Enough for a group of 4000 to process
for(int j = 0; j < count; j++)
{
for(int m = 0; m<5;m++)
System.out.println(i[m+j*5]+"****"+m+j*5);
//process
}
//Processing if the remaining amount is not enough 4000
for(int m = 0; m<len%5;m++)
System.out.println(i[m+count*5]+"====="+m+count*5);
}
}