Java tutorial
public class Main { public static void main(String[] args) { System.out.println(Long.toString(10, 8)); // returns a string representation of the specified long with radix 10 String retval = Long.toString(1234567890, 10); System.out.println("Value = " + retval); // returns a string representation of the specified long with radix 16 retval = Long.toString(1234567890, 16); System.out.println("Value = " + retval); // returns a string representation of the specified long with radix 8 retval = Long.toString(1234567890, 8); System.out.println("Value = " + retval); } }