Home > Back-end >  Why use in Java Iterator Iterator
Why use in Java Iterator Iterator

Time:04-27

The Iterator pattern is used to traverse the collection class standard access methods, it can access logic from the different types of collection classes, abstracted set to avoid exposure to the client, the internal structure of traverse in a container for each object without having to consider the number of the container object, and to protect the data don't show,

CodePudding user response:

This problem you tell me the answer about
I don't care for loop second to none

CodePudding user response:

Thanks for sharing...

CodePudding user response:

If the collection length change? This time is about to use iterators

CodePudding user response:

reference tomato egg chao's reply: 3/f
if the collection length change? This time is about to use iterator
don't know a thing called the size?
  • Related