0

我在 excel 中有 11 列(索引 0 到 10)。我正在尝试将列从索引 4 移动到索引 10 到左一列。

worksheet.shiftColumns(4,10,-1)

这给出了 java.lang.ArrayIndexOutOfBoundsException : Index 9 out of bounds for length 9。

但我的 excel 共有 11 个非空列。对于解决此/替代方法的任何建议,我将不胜感激。

4

0 回答 0