@Test
public void test01(){
int[] eClist = {1,2,3,4,5,6,7,8,9,10,10,9,8,7,6,5,4,3,2,1,1,2,3,4,5,6,7,8,9,10,10,9,8,7,6,5,4,3,2,1,1,2};
if (eClist!=null&&eClist.length>0) {
int a = (eClist.length / 20);
if (eClist.length % 20 > 0) {
a = (eClist.length / 20) + 1;
}
for (int b = 0; b < a; b++) {
int jt = b * 20;
for (int j = jt; j < jt + 20; j++) {
if (j < eClist.length ) {
System.out.print(eClist[j]);//处理每个
}
}
System.out.println();//换行
}
public void test01(){
int[] eClist = {1,2,3,4,5,6,7,8,9,10,10,9,8,7,6,5,4,3,2,1,1,2,3,4,5,6,7,8,9,10,10,9,8,7,6,5,4,3,2,1,1,2};
if (eClist!=null&&eClist.length>0) {
int a = (eClist.length / 20);
if (eClist.length % 20 > 0) {
a = (eClist.length / 20) + 1;
}
for (int b = 0; b < a; b++) {
int jt = b * 20;
for (int j = jt; j < jt + 20; j++) {
if (j < eClist.length ) {
System.out.print(eClist[j]);//处理每个
}
}
System.out.println();//换行
}
}
}