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[] src) {
        return toVector(src, new Vector());
    }

    public static Vector toVector(Object[] src, Vector dest) {
        if ((src != null) && (src.length > 0))
            for (int i = 0; i < src.length; i++)
                dest.addElement(src[i]);
        return dest;
    }
}