Java iterator design pattern
An iterator is an object that enables a programmer to traverse through a group of objects like lists, set etc. Java iterator design pattern comes under behavioural design patterns. According to GoF, iterator design pattern states that Provides a way to access the elements of an aggregate object without exposing its underlying representation. Java iterator … Read more