# What means RawY\[RawY.length-1\]

**URL:** <https://discourse.processing.org/t/what-means-rawy-rawy-length-1/341>\
**Category:** Beginners\
**Created:** [May 24, 2018, 2:24pm UTC](https://discourse.processing.org/t/what-means-rawy-rawy-length-1/341 "2018-05-24T14:24:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [May 24, 2018, 5:53pm UTC](https://discourse.processing.org/t/what-means-rawy-rawy-length-1/341/3 "2018-05-24T17:53:50Z")

</div>

Shorter answer: 👼

- A Java array got a field called _length_, which keeps the number of indexed elements it contains.
- Its 1st index, a.K.a the head element, is 0.
- Its last index, a.K.a. the tail element, is _length_ - 1.
- We specify the index we wish to access via the square brackets `[]` operator:  
[https://Processing.org/reference/arrayaccess.html](https://Processing.org/reference/arrayaccess.html)
- For further details: [http://www.TutorialsPoint.com/java/java\_arrays.htm](http://www.TutorialsPoint.com/java/java_arrays.htm)

---

_[View the full topic](https://discourse.processing.org/t/what-means-rawy-rawy-length-1/341)._
