# \[SOLVED\] ArrayIndexOutOfBoundsException: 1

**URL:** https://discourse.processing.org/t/solved-arrayindexoutofboundsexception-1/2288
**Category:** Electronics (Arduino, etc.)
**Created:** [August 1, 2018, 10:39pm UTC](https://discourse.processing.org/t/solved-arrayindexoutofboundsexception-1/2288 "2018-08-01T22:39:56Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![racs](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@racs](https://discourse.processing.org/u/racs)
#### Post date: [August 1, 2018, 11:20pm UTC](https://discourse.processing.org/t/solved-arrayindexoutofboundsexception-1/2288/4 "2018-08-01T23:20:34Z")

</div>

This is code from a tutorial on youtube [https://www.youtube.com/watch?v=YgjsWvFRpSE&feature=youtu.be](https://www.youtube.com/watch?v=YgjsWvFRpSE&feature=youtu.be) that I’m using and in the tutorial it works fine. I think it should spit out two values because of the line: list = split(val, ‘,’); it should split the data according to the comma it reads.

My theory is that the serial monitor isn’t printing out values consistently. For example it should be:

29, 29  
29, 29  
30, 29

BUT maybe its printing out like:

29,29  
29,  
30, 29

which it might crash/freeze? I’m not sure honestly

---

_[View the full topic](https://discourse.processing.org/t/solved-arrayindexoutofboundsexception-1/2288)._
