what is vector in java