How to Remove all elements from vector?

sdc rencontres In this example, we will see how to remove all the elements from a Vector. We will be using clear() method of Vector class

je veux rencontrer des hommes riches 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); } } citas online gratis ecuador Output:

what kind of guy am i dating quiz Actual vector:[Selenium, Java, UFT, Other]
After clear vector:[]