I\'ve got List
. And I want to get max result using Collections
. This is my code:
List dynamics=spy
Your error might be in this line:
List<Long> result = query.list();
where query.list() is returning a BigInteger List instead of Long list. Try to change it to.
List<BigInteger> result = query.list();
Try to convert the BigInteger to a long like this
Long longNumber= bigIntegerNumber.longValue();