code: public static Object[] appendArray(Object[] arr, Object obj) {
  		Object[] newArr = new Object[arr.length + 1];
  		System.arraycopy(arr, 0, newArr, 0, arr.length);
  		newArr[arr.length] = obj;
  		return newArr;
  	}
docs: Append an Object at end of array