title: Is it possible to reverse a bitshift and addition
body: <p>is it possible to reverse this in java?</p>
  
  <pre><code>byte config = (byte)((X &lt;&lt; 6) + Y);
  </code></pre>
  
  <p>knowing that X is 0,1,2 or 3 (2 bits) and Y is between 0 and 24 (5 bits)</p>