java.math.BigInteger cannot be cast to java.lang.Long

前端 未结 8 691
醉话见心
醉话见心 2020-12-09 15:44

I\'ve got List dynamics. And I want to get max result using Collections. This is my code:

List dynamics=spy         


        
8条回答
  •  离开以前
    2020-12-09 16:25

    Try to convert the BigInteger to a long like this

    Long longNumber= bigIntegerNumber.longValue();
    

提交回复
热议问题