Die toArrayMethode in ArrayListBloch verwendet beide System.arraycopyund, Arrays.copyOfum ein Array zu kopieren. public <T> T[] toArray(T[] a) { if (a.length < size) // Make a new array of a's runtime type, but my contents: return (T[]) Arrays.copyOf(elementData, size,...