how to write dynamic excel file (number of column can exceed) into java objects using apache poi
问题 I understand that we can create model class whose each instance variable will be bound to each excel column like below class emp{ String name; String empId; //getter and setter method of each } excel file: name | empid abc | 123 bcd | 3232 xyz | ee32 how to handle this case when number of column in excel increases dynamically 回答1: I would doing this using a kind of table model. A ExcelTableModel similar to the javax.swing.table.DefaultTableModel. Complete example showing a blueprint of this