Here you can find the source of remove(T[] a, int i)
public static <T> T[] remove(T[] a, int i)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static <T> T[] remove(T[] a, int i) { T[] tmp = Arrays.copyOf(a, a.length - 1); System.arraycopy(a, i + 1, tmp, i, tmp.length - i); return tmp; }// www . j a v a2 s . c o m public static int[] remove(int[] a, int i) { int[] tmp = Arrays.copyOf(a, a.length - 1); System.arraycopy(a, i + 1, tmp, i, tmp.length - i); return tmp; } }