转换一下格式就可以了
DecimalFormat df = new DecimalFormat("#");
System.out.println( df.format(cell.getNumericCellValue()));
本文介绍了一种使用Java DecimalFormat类来格式化Excel单元格中的数值的方法。通过实例展示了如何将单元格中的数值转换为指定格式的字符串。
转换一下格式就可以了
DecimalFormat df = new DecimalFormat("#");
System.out.println( df.format(cell.getNumericCellValue()));
3858

被折叠的 条评论
为什么被折叠?
