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