title: How to extract and display each of the four bytes of an integer individually as 8-bit values
body: <p><strong>edit: This question is not a duplicate. The whole point is to solve the question using masks and bit shifts.</strong></p>
  
  <p>I have a terrible programming teacher that introduces concepts without explaining them or providing material to understand them, and he's to arrogant and confrontational too seek help from. </p>
  
  <p>So naturally, I'm stuck on yet another question without any guidance. </p>
  
  <blockquote>
    <p>Given an integer variable x, write Java code to extract and display each of the four bytes of that integer individually as 8-bit values.</p>
  </blockquote>
  
  <p>I'm supposed to use masking and bit shift operations to answer this question. I understand that masking means turning bits "on or off" and I understand that an integer has 32 bits or 4 bytes. But that information doesn't help me answer the question. I'm not necessarily asking for the entire solution, but any help would be appreciated. </p>