Java tutorial
public class MainClass { public static void main(String[] arg) { System.out.println(Integer.toHexString(10)); System.out.println(Integer.toHexString(20)); System.out.println(Integer.toHexString(30)); System.out.println(Integer.toHexString(40)); } }