Is there a Queue or List in GWT in which items are retrieved in the order in which they were added?
E.g I want to be able to do this:
list.add("a");
list.add("b");
list.add("c");
for (String s: list)
{
Window.alert( s);
}
and for the output to always say: a, b, c
and never c, a, b
or any other order. Is that possible?
I see on the JRE emulation page that PriorityQueue is implemented, however the documentation for that says that the items are ordered in their natural order. I'm not sure what exactly that means, if it means FIFO (first in first out), or some other way of ordering.