Tag: iterator

  • How to implement Iterator pattern in java?

    Let’s say you run a small theatre. Your theatre is unique , only those who have membership can watch movies in your theatre. Anyone of any age can be a member. You are not just screening latest movies but curated collections tailored for movie lovers. You have a database of all members . There are…