codice:
int test = 12;
Integer val = (Integer)vector.get(i);
if(test == val.intValue()){}
...

codice:
int test = 12;
Integer val = (Integer)vector.get(i);
if(val.compareTo(new Integer(test))...