The JVM says
“ArrayIndexOutOfBounds”
You were off by one.

Dan