Here you can find the source of toBigInteger(int arg)
public static BigInteger toBigInteger(int arg)
//package com.java2s; /*/*from w w w . j a v a2 s. c om*/ ** Copyright 2009-2014 by LivingLogic AG, Bayreuth/Germany ** All Rights Reserved ** See LICENSE for the license */ import java.math.BigInteger; public class Main { public static BigInteger toBigInteger(int arg) { return new BigInteger(Integer.toString(arg)); } public static BigInteger toBigInteger(long arg) { return new BigInteger(Long.toString(arg)); } }