Problem with Numeric/String using Apache POI...

Posted by joycollector on Stack Overflow See other posts from Stack Overflow or by joycollector
Published on 2009-07-02T04:50:56Z Indexed on 2010/04/21 3:03 UTC
Read the original article Hit count: 437

Filed under:
|
|
|

Hi!

  1. I have excel file with such contents:

A1: SomeString

A2: 2

All fields are set to String format.

  1. When I read file in java using poi it tells that B1 is numeric cell format.
  2. The problem is that the value in A1 can be 2 or 2.0 so I can't just use .toString(). Can anyone help please?

© Stack Overflow or respective owner

Related posts about java

Related posts about apache