title: Combining two bytes in Java
body: <p>Having two bytes, how to make a new byte by taking the first 3 bits from the first byte and the last 5 from the second ?</p>
  
  <p>For instance, how would that for <code>11100000</code> and <code>00011111</code> ==> <code>11111111</code> ?</p>
  
  <p>I am using Java.</p>