Returns a new array containing all elements contained in this ArrayList. @return an array of the elements from this ArrayList
()
| 597 | * @return an array of the elements from this {@code ArrayList} |
| 598 | */ |
| 599 | @Override |
| 600 | public Object[] toArray() { |
| 601 | Object[] result = new Object[size]; |
| 602 | System.arraycopy(array, firstIndex, result, 0, size); |
| 603 | return result; |
| 604 | } |
| 605 | |
| 606 | /** |
| 607 | * Returns an array containing all elements contained in this |