Parsing and Formatting a Big Integer into octal
import java.math.BigInteger; public class Main { public static void main(String[] argv) throws Exception { BigInteger bi = new BigInteger("1000", 8); s = bi.toString(8); } }