code: public static BitSet valueOf(long[] longs) {
          int n;
          for (n = longs.length; n > 0 && longs[n - 1] == 0; n--)
              ;
          return new BitSet(Arrays.copyOf(longs, n));
      }
docs: Returns a new bit set containing all the bits in the given long array.
  
  <p>More precisely,
  <br>{@code BitSet.valueOf(longs).get(n) == ((longs[n/64] & (1L<<(n%64))) != 0)}
  <br>for all {@code n < 64 * longs.length}.
  
  <p>This method is equivalent to
  {@code BitSet.valueOf(LongBuffer.wrap(longs))}.
  
  @param longs a long array containing a little-endian representation
  of a sequence of bits to be used as the initial bits of the
  new bit set
  @return a {@code BitSet} containing all the bits in the long array
  @since 1.7