code: public static int[] removeAt (int[] list, int index)
      {
          // this will NPE if the bastards passed a null list, which is how
          // we'll let them know not to do that
          int nlength = list.length-1;
  
          // create a new array minus the removed element
          int[] nlist = new int[nlength];
          System.arraycopy(list, 0, nlist, 0, index);
          System.arraycopy(list, index+1, nlist, index, nlength-index);
  
          return nlist;
      }
docs: Removes the value at the specified index. A new array will be
  created containing all other elements, except the specified
  element, in the order they existed in the original list.
  
  @return the new array minus the specified element.