小编Hij*_*iji的帖子

java.lang.NumberFormatException:对于输入字符串:"1538956627792"

我正在尝试int使用以下代码将系统时间转换为:

String today = "" + System.currentTimeMillis();
int todayInt = Integer.parseInt(today);
Run Code Online (Sandbox Code Playgroud)

但是我收到以下错误:

java.lang.NumberFormatException: For input string: "1538956627792"
Run Code Online (Sandbox Code Playgroud)

为什么这个数字:"1538956627792"仍然抛出错误?

java android numberformatexception

0
推荐指数
1
解决办法
908
查看次数

标签 统计

android ×1

java ×1

numberformatexception ×1