Java Iterator Interface Example

Java Iterator Interface Example: JDK 1.0 Enumeration is replaced by Iterator interface in JDK 1.2. Being latest, it comes with many advantages over Enumeration. Like Enumeration, Java Iterator interface is also used for iterating the elements. Java Iterator Interface Example import java.util.*; public class IteratorDemo { public static void main(String args[]) { Vector vect1 = …

Java Iterator Interface Example Read More »