# Question: Index Values of Arrays

**URL:** <https://discourse.processing.org/t/question-index-values-of-arrays/19975>\
**Category:** Beginners\
**Created:** [April 20, 2020, 9:00pm UTC](https://discourse.processing.org/t/question-index-values-of-arrays/19975 "2020-04-20T21:00:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![confusedstudent](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@confusedstudent](https://discourse.processing.org/u/confusedstudent)\
**Post date:** [April 20, 2020, 9:00pm UTC](https://discourse.processing.org/t/question-index-values-of-arrays/19975/1 "2020-04-20T21:00:03Z")

</div>

I was just wondering, if I have an array with 1,000 elements, what is the range of index values for that array?

---

<div class="post-metadata">

**Author:** ![Schred](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/schred/32/13146_2.png) [@Schred](https://discourse.processing.org/u/Schred)\
**Post date:** [April 20, 2020, 9:15pm UTC](https://discourse.processing.org/t/question-index-values-of-arrays/19975/2 "2020-04-20T21:15:18Z")

</div>

Like the numbers you can use to access it’s contents? 0 to 999. Both inclusive.

```auto
int[] arr = new int[1000];
int min = arr[0];
int max = arr[999]; // or better: arr[arr.length - 1];

```
