Java : convert a String to Int (Unknown Source)
This question already has an answer here:
98597598684
is greater than Integer.MAX_VALUE
. Use
long id = Long.parseLong(filename1.substring(0, filename1.length() - 4));
你甚至可以尝试new BigInteger("98597598684")
下一篇: Java:将字符串转换为Int(未知源)