You can read the article

try {
File file = new File(mFile);
XSSFWorkbook wb;
XSSFSheet sheet;
XSSFRow row;
XSSFCell cell;
int rowIndex = 0;