# Using arrays inside for loops

**URL:** <https://discourse.processing.org/t/using-arrays-inside-for-loops/481>\
**Category:** Coding Questions\
**Created:** [May 29, 2018, 12:45am UTC](https://discourse.processing.org/t/using-arrays-inside-for-loops/481 "2018-05-29T00:45:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 29, 2018, 1:00am UTC](https://discourse.processing.org/t/using-arrays-inside-for-loops/481/4 "2018-05-29T01:00:45Z")

</div>

> [@What means RawY\[RawY.length-1\]](https://discourse.processing.org/t/what-means-rawy-rawy-length-1/341/3):
>
> Shorter answer: angel 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/using-arrays-inside-for-loops/481)._
