packageexceRead;importjava.io.File;importjava.io.FileInputStream;importjava.io.FileNotFoundException;importjava.io.IOException;importjava.text.DecimalFormat;importorg.apache.poi.ss.usermodel.Cell;importorg.apache.poi.ss.usermodel.DateUtil;importorg.apache.poi.ss.usermodel.Row;importorg.apache.poi.xssf.usermodel.XSSFCell;importorg.apache.poi.xssf.usermodel.XSSFSheet;importorg.apache.poi.xssf.usermodel.XSSFWorkbook;public classExcleReadNullRow {public static voidgetType(XSSFCell cell) {switch(cell.getCellType()) {caseCell.CELL_TYPE_STRING:
System.out.print(cell.getRichStringCellValue().getString()+ "|");//System.out.print("|");
break;caseCell.CELL_TYPE_NUMERIC:if(DateUtil.isCellDateFormatted(cell)) {
System.out.print(String.valueOf(cell.getDateCellValue())+ "|");
}else{
System.out.print(cell.getNumericCellValue()+ "|");
}//System.out.print(&