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