Re: what happen in for (x:List) and iterator when adding to List



George <zggame@xxxxxxxxx> wrote:
I am using java 5. So I cannot use Deque.
Any suggestion?

Now that you know the javadocs, hinting you towards
Queue and LinkedList (as a standard class implementing
Queue) should get you further. (these two do exist in 1.5)

.



Relevant Pages