您当前的位置: 首页 >  Java
  • 1浏览

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

java Operator ‘/‘ cannot be applied to ‘java.math.BigInteger‘, ‘int‘

软件工程小施同学 发布时间:2021-07-13 11:02:09 ,浏览量:1

Operator '/' cannot be applied to 'java.math.BigInteger', 'int'

这是因为BigInteger不能直接做数学运算,需要先转为int

BigInter a = 1;

int b = a.intValue();

关注
打赏
1665320866
查看更多评论
立即登录/注册

微信扫码登录

0.0439s