Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Iterator;

import java.util.Set;
import java.util.Vector;

public class Main {
    public static Vector setToVector(Set set) {
        Vector setVector = new Vector();
        if (set != null) {
            for (Iterator i = set.iterator(); i.hasNext();) {
                setVector.add(i.next());
            }
        }
        return setVector;
    }
}