Why is this code giving me an ArrayIndexOutOfBoundException?

Printable View