Hello Awesome Java People.
I have a question about the way the Enumeration abstract class works. I think I can explain this best with an image. Take the following ArrayList<Integer>:
When I am iterating through the above ArrayList with the Enumeration, I use the two methods:
hasMoreElements() and nextElement()
My question is this. Does the Enumeration occur in order ? i.e. would the first element to be grabbed by nextElement be the number 30 according to the ArrayList diagram above ?
If it is in Order, then for some strange reason, that ain't happening for me !
Any help would be great. PS. I have checked the API, but I saw nothing that would answer my above query.