I need to add a line between two existing lines. I need a new blank line. Is there some method in poi package for this?
public void endossar(String controle) {
Iterator ite = null;
try {
ite = c.conectar("sheet").iterator();
} catch (IOException ex) {
}
while (ite.hasNext()) {
XSSFRow row = (XSSFRow) ite.next();
if (row.getCell(0).toString().equals(controle)) {
row.setRowNum(row.getRowNum()+1);
// help here, include a new blank line
}
}
}