Java - 配列から要素を削除する

Javaの配列から特定の文字列またはintオブジェクトを削除するにはどうすればよいですか?
最良の選択は、オブジェクトのコレクションを使用することです。要素は位置オフセット -1.

public void removeElement(Object[] a, int del) {
System.arraycopy(a,del+1,a,del,a.length-1-del);
}

Apache Commons

コモンズラングのライブラリを使用することもできますArrayUtils.

array = ArrayUtils.removeElement(array, element)
Resources:
https://stackoverflow.com/questions/642897/removing-an-element-from-an-array-java