I have an Excel file of normal cells along with merged cells and a task to store each row in the Excel file to MySQL database. I am able to get data of each cell from Excel file and store in the database except data from merged cells. My java code:
FileInputStream input = new FileInputStream("/Users/test.xlsx");
Workbook wb = WorkbookFactory.create(input);
Sheet sheet = wb.getSheetAt(0);
for(i=0;i<no.ofrows;i++)
for(j=0;j<no.ofcolomns;j++)
{
String var = String.valueOf(sheet.getRow(i).getCell(j));
}