title: Java bit shift (lsh) << - error in Java?
body: <p>I have an expression:</p>
  
  <pre><code>short w = (short) ((byte) dana) &lt;&lt; x);
  ...
  String.format ("%04X", w);
  </code></pre>
  
  <p>if they includes:</p>
  
  <p><code>dana = (byte) 0x88;</code>
  and
  <code>int x = 5;</code></p>
  
  <p>I receive 0xF100</p>
  
  <p>instead of 0x1100</p>
  
  <p>What can I do to make it properly!</p>