You read the stack trace from the top down to see, first, where the exception happened and then, as you read down, what was happening at the time.

An ArrayIndexOutOfBoundsException means that you...