Java Array to Vector ArrayToVector(Object arr[])

Here you can find the source of ArrayToVector(Object arr[])

Description

Array To Vector

License

Open Source License

Declaration

public static final Vector ArrayToVector(Object arr[]) 

Method Source Code

//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;
    }
}