import java.util.*;
public class VectorDemo
{
public static void main(String args[])
{
//creates vector
Vector<Integer> vec = new Vector<Integer>();
System.out.println("Initial size of Vector: "+vec.size());
System.out.println("Initial capacity of Vector: "+vec.capacity());
//adding the elements
for(int i = 0; i <= 10; i++)
{
vec.add(new Integer(i * 5));
}
//retrving the element
System.out.println("Vector element after adding: "+vec);
System.out.println("Size of the Vector after adding: "+vec.size());
System.out.println("Capacity of Vector after adding: "+vec.capacity());
//delete the elemnt from the list
vec.removeElement(0);
vec.remove(5);
System.out.println("Vector elements after deleting: "+vec);
System.out.println("Size of the Vector after deleting: "+vec.size());
System.out.println("Capacity of Vector after deleting: "+vec.capacity());
}
}