The index to the get() method called on line 46 was past the end of the ArrayList.
Remember indexes range from 0 to the list length-1.
The code should test the value of the index to be sure it...