Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What is the design pattern suitable to access elements of a Collection?

Pragya Keshap answered on February 10, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers

  • Document and explain the patterns you are going to use

  • What is the design pattern suitable to access elements of a Collection?

    0

    We can use Iterator design pattern to access the individual elements

    of a Collection. In case of an ordered collection we can get Iterator

    that returns the elements in an order.

    In Java there are many implementation of Iterator in Collections

    package. We have iterators like- Spliterator, ListIterator etc. that

    implement Iterator pattern.

    https://www.tutorialspoint.com/design_pattern/iterator_pattern.htm#:~:text=Iterator%20pattern%20is%20very%20commonly,to%20know%20its%20underlying%20representation.

    Popularity 2/10 Helpfulness 1/10 Language java
    Source: Grepper
    Tags: elements java
    Link to this answer
    Share Copy Link
    Contributed on Feb 10 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.