Java tutorial
public class Main { public static void main(String[] argv) throws Exception { int i = Integer.parseInt("1000", 8); String s = Integer.toString(i, 8); System.out.println(s); } }