How to add all elements of a list to vector?

click here how can i get abilify cheap Below example shows how to copy or create a vector with another collection object. In this code we have created an ArrayList and by using addAll() method, we can copy to vector object.

site rencontre gps package test; import java.util.ArrayList; import java.util.List; import java.util.Vector; public class ListToVector { 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"); System.out.println("Actual vector:"+vct); List<String> list = new ArrayList<String>(); list.add("Testing"); list.add("Development"); vct.addAll(list); System.out.println("After Copy: "+vct); } } Output:

see url

go here Actual vector:[Selenium, Java, UFT, Other] archimede aurait pu rencontrer christophe colomb After Copy: [Selenium, Java, UFT, Other, Testing, Development]