code: public static Object toAdjustedArray(Object source, Object addition,
                                           int colindex, int adjust) {
  
          int newsize = Array.getLength(source) + adjust;
          Object newarray =
              Array.newInstance(source.getClass().getComponentType(), newsize);
  
          copyAdjustArray(source, newarray, addition, colindex, adjust);
  
          return newarray;
      }
docs: Returns an array containing the elements of parameter source, with one
  element removed or added. Parameter adjust {-1, +1} indicates the
  operation. Parameter colindex indicates the position at which an element
  is removed or added. Parameter addition is an Object to add when
  adjust is +1.