code: @SuppressWarnings("unchecked")
      public T[] nextCombinationAsArray()
      {
          T[] combination = (T[]) Array.newInstance(elements.getClass().getComponentType(),
                                                    combinationIndices.length);
          return nextCombinationAsArray(combination);
      }
docs: Generate the next combination and return an array containing
  the appropriate elements.
  @see #nextCombinationAsArray(Object[])
  @see #nextCombinationAsList()
  @return An array containing the elements that make up the next combination.