Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试将数据从一个 Excel 工作表复制到另一个工作表,但我的数据正在被修剪,并且格式与复制的不同。我需要复制确切的格式,因为我必须重用单元格内容才能插入 DB。
要复制的代码如下所示:
String cell = excelSheet.getCell(col, r).getContents().trim();
如何复制保持原始单元格格式的单元格?