import java.util.Arrays;
import java.util.Vector;
public class MainClass {
public static void main(String args[]) {
Integer[] array = {1,2,3,4,5};
Vector v = new Vector(Arrays.asList(array));
System.out.println(v);
}
}
[0, 1, 2, 3, 4, 5]