# Array Index Out of Bounds error on Array List

**URL:** <https://discourse.processing.org/t/array-index-out-of-bounds-error-on-array-list/3006>\
**Category:** Processing\
**Created:** [August 27, 2018, 2:11am UTC](https://discourse.processing.org/t/array-index-out-of-bounds-error-on-array-list/3006 "2018-08-27T02:11:21Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [August 27, 2018, 10:35am UTC](https://discourse.processing.org/t/array-index-out-of-bounds-error-on-array-list/3006/5 "2018-08-27T10:35:21Z")

</div>

> [@jb4x](#):
>
> Then you add a function that duplicate your list:

```auto
String[] originalArray = { "apple", "orange", "grape", "banana", "lemon" };
String[] clonedArray = originalList.clone();

```

---

_[View the full topic](https://discourse.processing.org/t/array-index-out-of-bounds-error-on-array-list/3006)._
