You want to learn [url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url].
Two compare two objects that are stored in a Vector, you'd do three simple steps:
1.) Retrieve object 1 from the the vector
2.) Retrieve object 2 from the vector
3.) Compare object 1 and 2
Which step is the problem for you?
int value = vector1.get(int);
int value2 = vector2.get(int);
if(value.equals(value2)) {
// It is the same
} else {
// its not the same
}