meeta gaur wrote:Why is iterator iterating numbers always in natural order but never strings ?
Well, from the evidence you showed us, it is.
But if it works with numbers always then why not with strings.It is doing well with TreeSet.
Because TreeSet is
defined to return elements in their natural order.
Honestly meeta, I think you could answer an awful lot of these questions for yourself if you took the time to read the documentation before posting.
Winston