title: Storing least-significant bit in array?
body: <pre><code>public static void decodeThis(BufferedImage im){
      int w = im.getWidth();
      int h=im.getHeight();
      int[] arr=im.getRGB(0, 0, w, h, null, 0, w);
      int[] eightBit=new int[8];
      for (int i=0;i&lt;arr.length;i++){
          System.out.printf("%x \n",arr[i]);
          }   
      }           
  </code></pre>
  
  <p>So this is my code so far. I am confused as to how to read off the least-significant bit from each pixel from arr and storing it in eightBit. I just learned about arrays and BufferedImage so this is all pretty new to me - any help would be appreciated. Thanks!</p>