jxl读取excel问题,如何判断一个单元格是否为空
Cell cell = sheet.getCell(j, i);
String option = cell.getContents();
if (option != null && !option.equals("") {
第一行就报错了,说下标越界
用过jxl的大神们,能不能告诉我如果检测一个单元格是否有内容
[解决办法]
JXL判断单元格为空的方法
cell1.getType() != CellType.EMPTY
发布时间: 2013-06-25 23:45:42 作者: rapoo
jxl读取excel问题,如何判断一个单元格是否为空
Cell cell = sheet.getCell(j, i);
String option = cell.getContents();
if (option != null && !option.equals("") {
cell1.getType() != CellType.EMPTY