T
tobleron
Hi, how to convert integer into hexadecimal in Java ? For example :
int dec = 12;
I want to make it become 0x000c. I don't want to use
Integer.toHexString(n) because it will return the result as string. I
need the hex as integer because i need to write :
file.writeShort(0x000c);
How to do it ? Please help.
int dec = 12;
I want to make it become 0x000c. I don't want to use
Integer.toHexString(n) because it will return the result as string. I
need the hex as integer because i need to write :
file.writeShort(0x000c);
How to do it ? Please help.