Java tutorial
import java.math.BigInteger; public class Main { public static void main(String[] args) { Long l = new Long(123456789L); BigInteger bi = BigInteger.valueOf(l); System.out.println(bi); } }