search

Home  >  Q&A  >  body text

excel - 要如何在號碼前面加0 ? JAVA

我從database讀的號碼是00037可是寫進excel file 只拿到 37.000被吃掉了!! 這要怎麼弄啊...
急.......

大家讲道理大家讲道理2804 days ago449

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:56:20

    I don’t know how you write, you can try writing '00037

    reply
    0
  • PHPz

    PHPz2017-04-18 10:56:20

    Did you use POI?
    You can set the cell format to String

    cell.setCellType(HSSFCell.CELL_TYPE_STRING);

    reply
    0
  • Cancelreply