List of utility methods to do Array Delete
byte[] | arrayDelete(byte[] array, int length) array Delete byte[] newArray = new byte[array.length - length]; System.arraycopy(array, length, newArray, 0, array.length - length); return newArray; |
int[] | arrayDelete(final int[] arr, final int ind) array Delete int[] narr = new int[arr.length - 1]; int offs = 0; for (int i = 0; i < arr.length; i++) { if (i == ind) { offs = 1; continue; narr[i - offs] = arr[i]; ... |