Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reading xlsx file using Apache POI

825944Dec 30 2010 — edited Dec 30 2010
Hi,

I am reading an xlsx file using Apache POI. The content of my file is as below:

Name Zip Code
Tim 42351
Sharon 09266
Seema 75432

When I try to read the content of cell 1 of row 1 i.e. 09266 it returns me 9266. I want to get the content as it is with zero.
Can anyone let me know how to read the content of a cell if it is prepended with zero.

Regards,

Raj
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 27 2011
Added on Dec 30 2010
15 comments
6,970 views