嗨,我有一个像这样的大字符串:
“999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999”
我希望将此字符串转换为长字符串。但我失败了。我做了:
Long.parseLong(longString);
但我收到一个错误:
java.lang.NumberFormatException: For input string: "99999999.......
有没有办法避免这种情况?