Afraid I've got lots of questions today. Following on from here
here.
I'm using a LinkedList (correct choice?) to store a queue of instructions for my robot. The instructions are represented as objects like;
These get loaded into the LinkedList with the add method then I'm trying to read them out of the queue in the robots main run method like;
That results in a complain about "incompatible types" on this line "RobotInstruction Ri = It.next();".
How do you deal with this one? The examples I've found via Google so far have all involved casting the object returned from the Iterator to a
String.
Many thanks again.
[ August 20, 2004: Message edited by: Daena Buyasta ]