Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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