Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.Arrays;
import java.util.List;
import java.util.Vector;

public class Main {
    /**
     * Parses the array to the vector.
     * @param array the array
     * @return the instance of Vector
     */
    public static Vector parseVector(Object[] array) {
        return new Vector(Arrays.asList(array));
    }

    /**
     * Parses the list to the vector.
     * @param list the instance of List
     * @return the instance of Vector
     */
    public static Vector parseVector(List list) {
        return new Vector(list);
    }
}