code: public static int removeAt (int[] list, int index)
      {
          int llength = list.length;
          if (llength <= index) {
              return 0;
          }
  
          int val = list[index];
          System.arraycopy(list, index+1, list, index, llength-(index+1));
          list[llength-1] = 0;
          return val;
      }
docs: Removes the value at the specified index. The values after the
  removed value will be slid down the array one spot to fill the
  place of the removed value. If a null array is supplied or one that
  is not large enough to accomodate this index, zero is returned.
  
  @return the value that was removed from the array or zero if no
  value existed at that location.