View Single Post
  #1 (permalink)  
Old 04-29-2008, 02:14 AM
aldo1987 aldo1987 is offline
Member
 
Join Date: Apr 2008
Posts: 2
aldo1987 is an unknown quantity at this point
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!
Reply With Quote
Sponsored Links