|
IndexOutOfBoundsException
Well i have e f**k off project in for thursday and i have a little runtime error that goes as such :-
notifyPassengerArrival(passengers.get(0));
on this line i want to return the first element in the array (a Passenger object) and pass it to the notifyPassengerArrival method, but i keep getting an IndexOutOfBoundsException.
I have confirmed that the array is not empty by using a println, so there is definetly an object at 0 in the array.
I just dont get it!
|