Here you can find the source of toBigInteger(List
public static List<BigInteger> toBigInteger(List<Integer> integerVector)
//package com.java2s; //License from project: Open Source License import java.math.BigInteger; import java.util.ArrayList; import java.util.List; public class Main { public static List<BigInteger> toBigInteger(List<Integer> integerVector) { List<BigInteger> bigIntegerVector = null; if (integerVector != null) { bigIntegerVector = new ArrayList<BigInteger>(); for (Integer i : integerVector) { bigIntegerVector.add(BigInteger.valueOf(i)); }/*from ww w. j av a 2s . com*/ } return bigIntegerVector; } }