comparing value stored in vector

i want to compare values from vector plz help
[52 byte] By [sridh32a] at [2007-10-3 3:11:05]
# 1

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?

JoachimSauera at 2007-7-14 21:01:54 > top of Java-index,Java Essentials,Java Programming...
# 2
canu plz tell wat r u storing in vector.get element by ->v.elementAt(int)then compare after extacting info frm object
prabhmeeta at 2007-7-14 21:01:55 > top of Java-index,Java Essentials,Java Programming...
# 3

int value = vector1.get(int);

int value2 = vector2.get(int);

if(value.equals(value2)) {

// It is the same

} else {

// its not the same

}

Futurisdom_Developera at 2007-7-14 21:01:55 > top of Java-index,Java Essentials,Java Programming...
# 4
Say what? Please don't contribute examples that are this bad.
Herko_ter_Horsta at 2007-7-14 21:01:55 > top of Java-index,Java Essentials,Java Programming...