code: public static <T> T[] concat(T firstElement, T... array) {
  		@SuppressWarnings("unchecked")
  		T[] result = (T[]) Array.newInstance( firstElement.getClass(), 1 + array.length );
  		result[0] = firstElement;
  		System.arraycopy( array, 0, result, 1, array.length );
  
  		return result;
  	}
docs: Concats an element and an array.
  
  @param firstElement the first element
  @param array the array
  @param <T> the type of the element in the array
  @return a new array created adding the element in the second array after the first element