<dependency>
<groupId>com.monitorjbl</groupId>
<artifactId>xls-streaming-reader</artifactId>
<version>2.0.0</version>
</dependency>
try(InputStream is = new FileInputStream("example.xlsx")) {
Workbook workbook = StreamingReader.builder()
for(Sheet sheet : workbook) {
for(Row row : sheet) {
for(Cell cell : row) {
System.out.println(cell.getStringCellValue());
}
}
}
} catch (IOException e) {
e.printStackTrace();
}