In the below given code i am properly fetching the data from database.The value i am fetching from database i am export the data in the csv file.
The System.out.println prints like
For PER_NR column data when export in the csv file it removes the 00 value in the left side.But i should export the value like example. 000329
Please suggest how i display 000 value in the csv file.
It's not an error in your Java code, nor in your CSV file. It's stupid Excel that thinks "all digits! it must be a number! cool! let's take off the leading zeros!". You may be able to solve this by specifying that the column is Text, not General or Number, but it wouldn't surprise me if this wouldn't work.