如何使用JXL在单列中写入数组列表值



如何使用jxl编写一个单列(ms excel)的ArrayList值('n'数字)

ArrayList<String> allRecordCount = scrapAllRecord();
Label EEFL = new Label(1, row, allRecordCount.get(0);
sheet.addCell(new Label(EEFL));

allRecordCount有'n'个值需要在一个列中写入所有这些值

使用StringUtils并添加分隔符并插入到特定的列

ArrayList<String> allRecordCount = scrapAllRecord();
Label EEFL = new Label(7, 3,
StringUtils.join(allRecordCount, ','));
sheet.addCell(new Label(EEFL));

最新更新