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]
See code below
ArrayList a = new ArrayList<>(Arrays.asList(strings)); a.remove(i); strings = new String[a.size()]; a.toArray(strings);