title: Java Convert integer to hex integer
body: <p>I'm trying to convert a number from an integer into an another integer which, if printed in hex, would look the same as the original integer.</p>
  
  <p>For example:</p>
  
  <p>Convert 20 to 32 (which is 0x20)</p>
  
  <p>Convert 54 to 84 (which is 0x54)</p>