This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java Vectors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

java Vectors

Harsha vaka

Joined: Oct 03, 2007
Posts: 4
I have two vectors v1,v2 which contains strings in them, I want to compare
contents of v1 at index i with the contents of vector v2 at index j. If i use v1.get(i).equals(v2.get(j)); always returning false, even it contains common terms in both vectors.
please sugest solution for my problem.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Please don't post the same question in multiple forums. Please continue this discussion here.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: java Vectors
It's not a secret anymore!