// System.out.printf("%15d\n",0xABCDEF); String n = "ABCDEF"; int num = Integer.parseInt(n,16); // System.out.println(num);//11259375 System.out.printf("%15d",num);