convert List<Long> to List<Integer> java 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());