java - "2147483647" is excel default value? -
i'm uploading 1 .xlsx file values. in .xlsx file entered 2345678910 in cell.next i'm uploaded saved in database 2147483647 value. next time i'm uploaded 8345678910 value shows error.
error: 2147483647 value saved.
my reg exp:"^[a-za-z0-9]*$"
how resolve it?
@ktorn , many other commenters commented answer. use long
instead of int
in java code. int
cannot store values larger 2^31 - 1 = 2147483647.
Comments
Post a Comment