我正在尝试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"仍然抛出错误?