Write a java application that perform the following task:
1) declare and create a vector with initial size of 10, increment of 2
2) add 2 number to this vector, test and display the size of the vector
3) add 6 more number to this vector, test and display the size of the vector
4) display all elements in the vector