Hi,
I would like to know how to do this
if ((array[i+1]  array[i] == 2) operation with a vector.
I have tried to find out how to do it, but haven't yet succeeded.
maks
assuming your vector was something like

Vector<Integer> array=new Vector<Integer>();

this would work

if ((array.elementAt(i+1)  array.elementAt(i)) == 2) System.out.println("is 2");
