开发者社区 问答 正文

Integer.parseInt?报错

这个为什么会报错,string类型都是数字(手机号),转成int,咋会报错

展开
收起
爱吃鱼的程序员 2020-06-08 21:27:06 856 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    手机号位数超了int上限,2147483647,查Integer.MAX_VALUELong.parseLong

    2020-06-08 21:27:24
    赞同 展开评论
问答地址: