format java cetak hex
System.out.println(String.format("0x%08X", 1));
Arrogant Ant
System.out.println(String.format("0x%08X", 1));