以下是我将如何遍历您要处理的每个列索引:
public static void main(String... args) {
int blocks = 16240 / 280;
// process each 280 column block...
for (int i = 0 ; i < blocks ; i++) {
// process the first 70 columns of the block
for (int j = 0 ; j < 70 ; j++) {
// Compute the column index
int s = i * 280 + j;
// Process the column with index 's' here
System.out.println(s);
}
}
}
结果列索引的摘要:
0
1
2
...
67
68
69
280
281
282
283
...
348
349
560
561
562
...
627
628
629
840
841
842
...
...
15748
15749
15960
15961
15962
...
16028
16029
单...是省略的连续数字。Double ... 是省略了全数输出的中间部分。