Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.Arrays;
import java.util.Vector;

public class Main {
    /**
     * <p>toVector.</p>
     *
     * @param objects a T object.
     * @param <T> a T object.
     * @return a {@link java.util.Vector} object.
     */
    public static <T> Vector<T> toVector(T... objects) {
        return new Vector<T>(Arrays.asList(objects));
    }
}