User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

tips:java:zeropaddedhex [2009/06/08 05:10] (current)
erik created
Line 1: Line 1:
 +====== Quickly convert a char to a zero padded hex string ======
 +<code java>
 +Integer.toHexString(0x100 | (int) '​\f'​).substring(1).toUpperCase();​ // '​\f'​ (linefeed) is '​0C'​ in hex
tips/java/zeropaddedhex.txt · Last modified: 2009/06/08 05:10 by erik