title: How to display a hex/byte value in Java
body: <pre><code>int myInt = 144;
  byte myByte = /* Byte conversion of myInt */;
  </code></pre>
  
  <p>Output should be <code>myByte : 90</code> (hex value of 144).</p>
  
  <p>So, I did:</p>
  
  <pre><code>byte myByte = (byte)myInt;
  </code></pre>
  
  <p>I got output of <code>myByte : ffffff90</code>. :(</p>
  
  <p>How can I get rid of those <code>ffffff</code>s?</p>