Erik's Weblog 2.0

July 11, 2006 +1 more...

[@149]

Char to Zero Padded Hex


Integer.toHexString(0x100 | (int) '\f').substring(1).toUpperCase(); // '\f' is '0C' in hex

Post a comment

 

Comment Preview