Hello ksahakian21!
You should always print the variables which cause an exception to see what is going on. In your case it is quite obvious why you get an ArrayIndexOutOfBoundsException in your...