如图,Java用poi操作excel,当cell是null的时候,如何让他变成空字符串呢?
大家讲道理
大家讲道理 2017-04-18 09:42:09
0
3
951

直接赋值不行呀

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
伊谢尔伦

cell = row.createCell(index);
cell.set...

洪涛

When cell is null, the object does not exist and of course cannot be assigned a value. You must first create the cell and then call the set method of the cell

左手右手慢动作

Is it okay to directly assign string s='';cell.setcellvalue(s);?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template