XLSX get last column?
How can i get the the last column when reading a xlsx file using the Apache POI API? There's a getLastRowNum method but nothing related with number of columns.
Thx for help.
You have to check each Row and call Row.getLastCellNum() . The max cell num is the last column num.
上一篇: 通过Java读取excel文件.xlsx
下一篇: XLSX获得最后一列?
