code: @SuppressWarnings({"unchecked"})
      public static <T> T[] arrayOf(T firstElement, T... moreElements) {
          checkArgNotNull(moreElements, "moreElements");
          Class elementType = moreElements.getClass().getComponentType();
          T[] array = (T[]) Array.newInstance(elementType, moreElements.length + 1);
          array[0] = firstElement;
          System.arraycopy(moreElements, 0, array, 1, moreElements.length);
          return array;
      }
docs: Joins the given arguments into one array.
  
  @param firstElement the first element
  @param moreElements more elements (optional)
  @return a new array containing all arguments.