BTW, "unordered" does not mean that the order is random. It does not mean that the order changes with each run. In fact, you can't infer anything here. In fact, as you have seen, for certain cases, on certain platforms, it can actually be seemingly ordered.
James Tharakan wrote:Overriden the hashcode and equals method.
While the integer class does override those methods, I don't see how that fact has any relevance to this question.
Henry