private static int indexOfLeastSignificantZeroBit(int value){
  int index=1;
  while ((value & 1) != 0) {
    value>>=1;
    index++;
  }
  return index;
}

private static int indexOfLeastSignificantZeroBit ( int value ) { int index = 1 ; while ( ( value & 1 ) != 0 ) { value >>= 1 ; index ++ ; } return index ; }
returns the index of the least significant zero bit in the specified value .
