Given an array of n Objects, let\'s say it is an array of strings, and it has the following values:
foo[0] = \"a\"; foo[1]
Initial array
int[] array = {5,6,51,4,3,2};
if you want remove 51 that is index 2, use following
for(int i = 2; i < array.length -1; i++){ array[i] = array[i + 1]; }