I want to read multiple files and store them into a database. Here's my code that reads only one file. How can I make it read more than one?
private static final String FILE_NAME = "C:/User/myFile.xlsx";
public static void main(String[] args) throws SQLException {
try {
FileInputStream excelFile = new FileInputStream(new File(FILE_NAME));
Workbook workbook = new XSSFWorkbook(excelFile);
Sheet datatypeSheet = workbook.getSheetAt(0);
Iterator<Row> iterator = datatypeSheet.iterator();
}
}