How to get value from a specific cell of an xlsx file using java apache poi

前端 未结 5 1409
一生所求
一生所求 2020-12-30 08:54

I am writing a java program to read an excel sheet (xlsx) using apache poi. I am able to iterate through all the cells and get all the values. But I am unable to get a spec

5条回答
  •  暖寄归人
    2020-12-30 09:31

    To get a value from a specific cell in excel you can use the below code line.

    wb.getSheetAt(0).getRow(1).getCell(1);
    

提交回复
热议问题