Why is this producing ArrayIndexOutOfBoundsException?

Printable View