Hi Eli,
You can create it using a VectorFactory. We typically use one of the default ones (VectorFactory.getDenseDefault() for dense vectors or VectorFactory.getSparseDefault() for sparse vectors).
To get a feeling for the general way to construct them would be:
Vector v = VectorFactory.getDenseDefault().createVector(arr.length);
for (int i = 0; i < arr.length; i++)
{
v.setElement(i, arr[i]);
}
// Now v is ready to go.
In the special case of an Integer array, you can turn it into a list and use one of the convenience creation methods:
Vector v1 = VectorFactory.getDenseDefault().copyValues(Arrays.asList(arr));
Thanks, : )
Justin