Can anyone tell me what i might be doing wrong with
this code??? I dont really have to much experience using vectors so im not quite sure how to go about this.
All i simply want to do is take each element of the hold
array and tranfer that into the vec vector. But i keep getting a inconvertable type error. When i try to cast.

thanks


import java.util.Vector;

class Vectortest{
public static void main(String[] args){

int[] hold = new int[25];

for(int i = 1; i < 25; i++){
hold[i] = i;
}

Vector vec = new Vector();
for(int i = 1; i < 25; i++){
vec.addElement((Vector)hold[i]);
}

}
}