How to read all elements in vector by using Enumeration?

http://visitsvartadalen.nu/?saxarokese=%C3%A4r-det-olagligt-att-k%C3%B6pa-Sildenafil-Citrate&124=c2 Below example shows how to iterate through vector using Enumeration object. We can get Enumeration object by calling hasMoreelements() method.

go to link package test; import java.util.Enumeration; import java.util.Vector; public class VectorEnumExample { public static void main(String a[]){ Vector<String> vct = new Vector<String>(); //adding elements to the end vct.add("Selenium"); vct.add("Java"); vct.add("UFT"); vct.add("Other"); Enumeration<String> enm = vct.elements(); while(enm.hasMoreElements()){ System.out.println(enm.nextElement()); } } }

opzionebinarie source site Output:

site de rencontre pour 55 ans et plus Selenium
Java
UFT
Other

The only business I know is learning new technology and spreading the knowledge. I believe sharing is learning. This is my prime reason to build this site.
I welcome and value your comments, suggestions and corrections.

http://www.ecoshelta.com/?kampys=http-auto-binary-it&09d=99 11426total visits,7visits today

rencontre citoyenne dieulefit The only business I know is learning new technology and spreading the knowledge. I believe sharing is learning. This is my prime reason to build this site. I welcome and value your comments, suggestions and corrections.