2
异常代码
String fileName = "/Users/jiangasheng/Desktop/太湖县人民医院_doc_郭彤彤_v1.0_20230209.xlsx";
HeaderListener headerListener = new HeaderListener();
EasyExcel.read(fileName, headerListener).sheet().autoTrim(true).doRead();
Map<Integer, String> headMap = headerListener.getHeadMap();
for (Map.Entry<Integer, String> entry : headMap.entrySet()) {
System.out.println("Key = " + entry.getKey() + ", Value = " + entry.getValue());
}
log.info("headMap size = {}", headMap.size());
Map<Integer, String> headMap1 = headerListener.getFirstData();
log.info("data size = {}", headMap1.size());
for (Map.Entry<Integer, String> entry : headMap1.entrySet()) {
System.out.println("Key = " + entry.getKey() + ", Value = " + entry.getValue());
}
异常提示
问题描述
请问,如何在data中填充最后一列数据(null)