Java exception invalid int for long integer

后端 未结 2 747
天涯浪人
天涯浪人 2021-01-26 04:09

I\'m currently developing a math application that makes long computations. I\'m getting java.lang.NumberFormatException: Invalid int: \"...\" error (where the ... is replaced by

2条回答
  •  野的像风
    2021-01-26 04:24

    Java's int datatype is limited to the values of -2,147,483,648 to 2,147,483,647 (inclusive). If you want larger 'integer' values I'd recommend using the long datatype.

提交回复
热议问题