title: Long Number Removing First Bit - Fast Way JAVA
body: <p>I have a series of long numbers in a long array. I want to take each Long number and want to get the first bit of it and according to the first bit, I want to process the other bits. Like following pseudo code,</p>
  
  <pre><code>i = 1000000 ;
  long[] a = new long[i];
  for j = 0  to i
   do,
    get long lo = a[i];
  
    // get first bit of lo
  
    if first bit = 0
       print long number (by removing first bit) in file a1
  
    else 
       print long number (by removing first bit) in file a2
  </code></pre>
  
  <p>Can anybody help me, what is the fastest way to, "get the first bit of that long number" and "removing the first bit and get the number" ? </p>