Home » Iterator

Tag Archives: Iterator

Java Iterator and ListIterator Example

Bipartite Graph

Java Iterator is a public interface provided by java.util package which belongs to Java Collections Framework. It allows us to traverse a collection such as a List(e.g. ArrayList, LinkedList) or a Set and access the data element of this collection. An Iterator can traverse the collection only in forward direction using next() and hasNext() methods and remove the last element ...

Read More »

Hashmap Java Example (with video)

Bipartite Graph

Java HashMap is a member of the Java Collection Framework and is a very common way to collect and retrieve data. HashMap represents a data structure that offers key-value pairs storing, based on hashing. HashMap Methods provided, allow you to add, modify and remove elements when needed. In this example, we are going to show how we can create a ...

Read More »