Hexadecimal integer literal : Hex Oct « Data Type « Java Tutorial
Put 0x or 0X in front of the numbers. Use the letters A to F (or a to f) to represent digits with values 10 to 15, respectively. public class MainClass { public static void main(String[] a) { int hexValue1 = 0x100; int hexValue2 = 0x1234; int hexValue3 .....