Java tutorial
public class MainClass { public static void main(String[] args) { int n = 1023; System.out.printf("%X\n", n); } }