Java tutorial
//package com.java2s; import java.util.Vector; public class Main { public static <T> Vector<T> asVector(T[] args) /* */ { /* 379 */if (args == null) /* */ { /* 381 */return null; /* */} /* */ /* 384 */Vector vResult = new Vector(args.length); /* */ /* 386 */for (Object t : args) /* */ { /* 388 */vResult.add(t); /* */} /* */ /* 391 */return vResult; /* */} }