Java tutorial
public class MainClass { public static void main(String args[]) { int c = 31; // initialize c System.out.printf("%#o\n", c); System.out.printf("%#x\n", c); } }