PeekingIterator and AbstractIterator from Google Guava

In this post, we will learn about the PeekingIterator and AbstractIterator classes from Google Guava library.

January 3, 2022

ListIterator in Java with examples

A ListIterator in Java is an Iterator that allows us to traverse the list in either direction, modify the list during iteration, and obtain the iterator’s current position in the list.

March 30, 2020

Enumeration and Iterator in Java

Java has two ways to iterate over the elements of a collection - using an Enumeration and an Iterator. This post explains Enumeration and Iterators in Java.

January 7, 2020