How to Remove all elements from vector?

source link In this example, we will see how to remove all the elements from a Vector. We will be using  message site de rencontre original clear() method of Vector class

click here

site de rencontre france 100 gratuit package test; import java.util.Vector; public class RemoveAll { 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); vct.clear(); System.out.println("After clear vector:"+vct); } }

site de rencontre pour veuves Output:

como coquetear a una mujer por facebook Actual vector:[Selenium, Java, UFT, Other] After clear vector:[]

go to site