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

前端 未结 8 700
醉话见心
醉话见心 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:08

    Imagine d.getId is a Long, then wrap like this:

    BigInteger l  = BigInteger.valueOf(d.getId());
    

提交回复
热议问题