title: What does & operator do when setting a variable?
body: <p>I've been looking at code from other projects recently seeing if it could give me ideas to pass time, something I noticed is that in some of these projects the &amp; operator is used when setting variables a lot.</p>
  
  <p>For example,</p>
  
  <pre><code>pixels = image.getRGB(0, 0, width, height, null, 0, width);
  for (int i = 0; i &lt; pixels.length; i++) {
      pixels[i] = (pixels[i] &amp; 0xff) / 64;
  }
  </code></pre>
  
  <p>or something like,</p>
  
  <pre><code>int x = 64 &amp; 0xff;
  </code></pre>
  
  <p>What does that &amp; operator do in that context? I've tried finding the answer but seem to come up empty handed, so any help would be much appreciated.</p>