title: Split a 32 bit Integer into 4 8 bit Integers
body: <p>I am working with video data in Java and wish to store four 8 bit integers in a 32 bit Integer. In other words I would like to pack the R, G, B, and A values from 0 to 255 into a single 32 bit Integer.</p>
  
  <p>How can I go about:</p>
  
  <ol>
  <li><p>Creating 4 Integer values from 0 to 255 and store them in a 32 bit Integer?</p></li>
  <li><p>Unpacking the 4 8 bit Integer values from the 32 bit Integer? </p></li>
  </ol>
  
  <p>Thanks!</p>