How does POI Excel insert new rows?

Using the shifRows method, the first parameter refers to the row to start inserting, and the second parameter is the number of ending rows

HSSFSheet sheet = workbook.getSheetAt(0);
sheet.shiftRows(12, 24, 1);

Guess you like

Origin blog.csdn.net/ABCAA1024/article/details/123689651