Java, fill CSV File with integer casted to String -


i have integer value long exported , displayed correctly in csv file.

the value diaplyed this:

1,13364e+12 

instead of this:

08136677950770 

i use bufferedwriter write file, , code looks this:

writer.write(data[0].tostring()); writer.write(";"); 

i've tried this:

writer.write("\'"+data[0].tostring()+"\'"); writer.write(";"); 

but displays this:

'08136677950770' 

how can display value without quotes?

08136677950770 

i recommend using biginteger, works string representation.

to value use simple tostring() method.

biginteger bi = new biginteger("1234567890");  string str = bi.tostring(); 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -