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
Try:
String.format("%08d", 13)
Note the 0 in the format string, that tells Java to prefix the number with zeroes up to the length indicated in the field (8 in this case).
0