1. 程式人生 > >POI讀取excel表格_getFirstCellNum作用

POI讀取excel表格_getFirstCellNum作用

getFirstCellNums是在行物件的基礎上使用的,

行物件   Row row = sheet.getRow(1);  獲取第二行物件;

  row.getFirstCellNum()獲取真實有資料的第幾個單元格

   sheet.getRow(1).getFirstCellNum();

結果是:3