Here you can find the source of ArrayToVector(Object arr[])
public static final Vector ArrayToVector(Object arr[])
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static final Vector ArrayToVector(Object arr[]) { Vector out = new Vector(arr.length); for (int i = 0, size = arr.length; i < size; i++) out.addElement(arr[i]);//from ww w. j a v a 2 s . c om return out; } }