Here you can find the source of integerToString(BigInteger value)
public static String integerToString(BigInteger value)
//package com.java2s; //License from project: Open Source License import java.math.BigInteger; public class Main { public static String integerToString(BigInteger value) { StringBuilder s = new StringBuilder(); while (value.bitLength() > 0) { BigInteger[] result = value.divideAndRemainder(BigInteger.valueOf(62)); value = result[0];/*from ww w . j a va2s .c o m*/ char c = intToChar(result[1].intValue()); s.insert(0, c); } return s.toString(); } private static char intToChar(int i) { if (i < 36) return Character.forDigit(i, 36); else return Character.toUpperCase(Character.forDigit(i - 26, 36)); } }