Java tutorial
//package com.java2s; import java.util.Vector; public class Main { public static Vector<Long> convertToVectorOfLongs(long[] a_aLongArray) /* */ { /* 487 */Vector vecReturn = null; /* 488 */if (a_aLongArray != null) /* */ { /* 490 */vecReturn = new Vector(a_aLongArray.length); /* 491 */for (long lLong : a_aLongArray) /* */ { /* 493 */vecReturn.add(Long.valueOf(lLong)); /* */} /* */} /* */ /* 497 */return vecReturn; /* */} }