how to write to csv with a leading zero?

前端 未结 6 1316
北海茫月
北海茫月 2020-12-21 11:47

I wish to write to a CSV file some data. One of the column that I input the information is in the form of an integer with leading zeros, example: 0000000013.

For so

6条回答
  •  执念已碎
    2020-12-21 12:15

    Even better way is to print your number as ="0000000013"

    String value = "0000000013"; 
    printWriter.println("=\"" + value + "\"");
    

提交回复
热议问题