Java tutorial
import java.math.BigInteger; public class Main { public static void main(String[] args) throws Exception { BigInteger mod = new BigInteger(2, new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 }); System.out.println(mod); } }