code: public static <T> T[] add(final T[] ar, final T e) {
          final int s = ar.length;
          final T[] t = Arrays.copyOf(ar, s + 1);
          t[s] = e;
          return t;
      }
docs: Adds an entry to the end of an array and returns the new array.
  
  @param ar  array to be resized
  @param e   entry to be added
  @param <T> array type
  @return array