Get Enumeration over Java Vector
import java.util.Collections; import java.util.Enumeration; import java.util.Vector; public class Main { public static void main(String[] args) { Vector<String> v = new Vector<String>(); v.add("A"); v.add("B"); v.add("D"); v.add("E"); v.add("F"); Enumeration e = Collections.enumeration(v); while (e.hasMoreElements()) System.out.println(e.nextElement()); } }