Hi,
I have a vector in which I added some integer numbers. Now when I remove these numbers from the vector and try to store it in an int variable I am getting "Incompatible types..found int ,expected java.lang.object". Any suggestions how can I store the values in a vector in a variable.
Vector neig = new Vector();
neig.add(2);
neig.add(5);
neig.add(-2);
int x = neig.get(1); //error here