How I can determine empty rows in .xls documents using Apache POI?
get the instance of CellReference and use formatAsString() on the instance. compare it with an empty String
`
if("".equals(cellRef.formatAsString())){
System.out.println("this is an empty cell");
}else{
System.out.println("Cell value : "+cellRef.formatAsString());
}
` Reference : http://www.javabeat.net/2007/10/apache-poi-reading-excel-sheet-using-java/