list long to list of int code example
Example: list of BigInteger to list of long
List<Long> longList = bigIntegerList.stream().map(BigInteger::longValue).collect(Collectors.toList());
List<Long> longList = bigIntegerList.stream().map(BigInteger::longValue).collect(Collectors.toList());