Ниже приведен код, который я пробовал:
Код: Выделить всё
FileInputStream fileInputStream = null;
XSSFSheet xssfResultSheet = null;
String filePath = "C:\\MyXcel.xlsx";
fileInputStream = new FileInputStream(new File(filePath));
XSSFWorkbook workbook = null;
workbook = new XSSFWorkbook(fileInputStream);
xssfResultSheet = workbook.getSheet("Sheet1");
int iRowCount = xssfResultSheet.getLastRowNum();
for (int i = 1; i
Подробнее здесь: [url]https://stackoverflow.com/questions/22221700/retrieve-integer-values-from-excel-using-java[/url]
Мобильная версия