Java tutorial
//package com.java2s; import java.util.Vector; public class Main { public static Vector toVector(Object[] source) { final Vector vec = new Vector(source.length); for (int i = 0; i < source.length; i++) { vec.addElement(source[i]); } return vec; } }